Lesson 8 of 34
&&, || এবং !: Conditions জোড়া
8 min 25 XP
&& (AND) তখনই true যখন দুই দিকই true। || (OR) true যখন যেকোনো এক দিক true। ! (NOT) true-কে false এবং false-কে true করে দেয়।
Example: edit me and press Run
Output Loading Java (first time takes a few seconds)
Press Run to see the result here.ছোট if/else ternary operator দিয়ে এক লাইনে লেখা যায়: condition ? value1 : value2
Example: edit me and press Run
Output Loading Java (first time takes a few seconds)
Press Run to see the result here.