Shop OBEX P1 Docs P2 Docs Learn Events
Simple Question — Parallax Forums

Simple Question

lboucherlboucher Posts: 139
edited 2009-05-22 18:56 in General Discussion
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
·

Comments

Sign In or Register to comment.