Lesson 6 of 34
if ಮತ್ತು else: ನಿರ್ಧಾರ ತೆಗೆದುಕೊಳ್ಳುವುದು
8 min 25 XP
Condition true ಆದಾಗ ಮಾತ್ರ if ಕೋಡ್ ಓಡಿಸುತ್ತದೆ; ಇಲ್ಲದಿದ್ದರೆ else ಭಾಗ ಓಡುತ್ತದೆ. Condition ಅನ್ನು ( ) brackets ಒಳಗೆ ಬರೆಯುತ್ತೇವೆ.
Example: edit me and press Run
Output Loading Java (first time takes a few seconds)
Press Run to see the result here.Comparison operators: == ಸಮ, != ಸಮವಲ್ಲ, > ಹೆಚ್ಚು, < ಕಡಿಮೆ, >= ಹೆಚ್ಚು ಅಥವಾ ಸಮ, <= ಕಡಿಮೆ ಅಥವಾ ಸಮ. ಪ್ರತಿಯೊಂದೂ boolean (true/false) ಕೊಡುತ್ತದೆ.
Example: edit me and press Run
Output Loading Java (first time takes a few seconds)
Press Run to see the result here.= value ಸಂಗ್ರಹಿಸುತ್ತದೆ, == ಹೋಲಿಸುತ್ತದೆ. ಇವನ್ನು ಗೊಂದಲ ಮಾಡಿಕೊಳ್ಳುವುದು ಅತಿ ಸಾಮಾನ್ಯ ತಪ್ಪುಗಳಲ್ಲಿ ಒಂದು.