DEV Community

umida5
umida5

Posted on

Operators

Bu operatorlar mantiqiy qiymatlar bilan ishlaydi (true yoki false):

  • && (AND - va)
  • || (OR - yoki)
  • ! (NOT - emas)
bool a = true;
bool b = false;
bool natija1 = a && b;  // false (ikkalasi ham true bo'lishi kerak)
bool natija2 = a || b;  // true (bittasi true bo'lsa ham yetarli)
bool natija3 = !a;      // false (a ning aksi)
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay