The ELSE statement
else 1 Focus on the user and all else will follow · 2 It's best to do one thing really, really well · 3 Fast is better than slow · 4 Democracy on the web works Remarks The Else keyword can be used in these contexts: If Then Else Statement · Select Case Statement · #If Then #Else Directive
Use the else statement to specify a block of code to be executed if the condition is false Syntax พบโครงการบ้านบนสุดยอดทำเลหายาก ครบทุกศักยภาพ ภายใต้แบรนด์ ELSE จากแสนสิริ ที่ให้คุณใช้ชีวิตในแบบที่ต้องการ พร้อมสัมผัสความเป็นส่วนตัวสูง ด้วยจำนวนยูนิตจำกัด
ในการใช้งานคำสั่ง if else เราสามารถเขียนโปรแกรมเพื่อตรวจสอบได้ว่าตัวเลขเป็นจำนวนคี่หรือจำนวนคู่ โดยการกำหนดเงื่อนไขเป็น myNumber % 2 == 0 นี่เป็นการหารแบบเอาเศษด้วย 2 ถ้าหากเศษเป็นศูนย์ Remarks The Else keyword can be used in these contexts: If Then Else Statement · Select Case Statement · #If Then #Else Directive