TI-Basic Z80 程式設計/命令列表/Else
外觀
Else
此命令與條件命令(例如 If 語句)配對使用。類似於 DOS“do”命令,僅告訴計算器在特定語句為真時執行什麼操作。
If A=0 //If value A=0 goto the next line Then //Because value was true, continue to the next line ... //Rest of code to execute ... End //Defines end of If block
由於此命令效率低且冗餘,因此經常排除在外以節省空間。在這些情況下,程式碼編寫為
If A=0 ... ... End
此格式在幾乎所有情況下都可以使用。