Suggestions/uBASIC/Open requests
Talk0
538pages on
this wiki
this wiki
< Suggestions | uBASIC
uBASIC: new keywords do/enddo
Edit
I suggest a new keyword which simplifies the program writing.
Use like this:
if a = b then do
let .....
print .....
if c = d then do
let .....
click ....
print .....
enddo
else do
let .....
print .....
enddo
enddo
if x > 0 then do
for i = 1 to x
print "value of i =", i
next i
enddo
Thanks you for CHDK!!!
Danilo
Why not use the standard BASIC syntax?
if a = b then
print "Equal"
else
print "Different"
endif
In fact, the uBASIC manual (downloadable from http://tinyurl.com/2hj7tn) states that IF//THEN//ELSE//ENDIF is already implemented. Is that version included in CHDK?
Grijan