プレイ日記
McCutcheon CallistoESHE
(Part 2/3) Button control and Results
0そうだね
プレイ済み
返信[1]
親投稿
Oscar PwnageBlock
You should rewrite those IF statements to be nested. Also, it's recommended to use logic gates instead of comparison operators, as well as using the button constants instead of their value, when writing conditionals using BUTTON.
0そうだね
プレイ済み
返信[2]
親投稿
raimondz raimondxz
Another good practice is to map the actions of each option. Example: VAR ACTION$[3] COPY ACTION$,@MAP IF B AND #UP THEN SELECTION=MAX(0,SELECTION-1) IF B AND #DOWN THEN SELECTION=MIN(2,SELECTION+1) IF B AND #A then CALL ACTION$[SELECTION] DEF option1 ? "You picked the first option" END @MAP DATA "option1","option2","option3"
1そうだね
プレイ済み
返信[3]
親投稿
McCutcheon CallistoESHE
Thanks for the suggestions. I usually code using the most convoluted and impractical terminology. :>
0そうだね
プレイ済み