Simple Question
HI All
Couple quick simple questions.
In SX it appears you cannot do
if x=1 & y=2 then
something
endif
looks like you have to do
if x=1 then
if y=2 then
something
endif
endif
or
z=x+y
if z=3 then
somehting
endif
Can someone confirm this??
Also looks like you cannot do
··SEROUT RA.0, T9600, "ABC"
or
··SEROUT RA.0, T9600, "A","B","C"
seems you have to do
ABC:
DATA "A","B","C"
for idx = 0 to 3
SEROUT RA.0,T9600,ABC(idx)
next
Can someone confirm this?
Thanks
Lucas
·
Couple quick simple questions.
In SX it appears you cannot do
if x=1 & y=2 then
something
endif
looks like you have to do
if x=1 then
if y=2 then
something
endif
endif
or
z=x+y
if z=3 then
somehting
endif
Can someone confirm this??
Also looks like you cannot do
··SEROUT RA.0, T9600, "ABC"
or
··SEROUT RA.0, T9600, "A","B","C"
seems you have to do
ABC:
DATA "A","B","C"
for idx = 0 to 3
SEROUT RA.0,T9600,ABC(idx)
next
Can someone confirm this?
Thanks
Lucas
·
Comments
String functions are generally not "built-in".
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php