[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
OT: question about programming in TinyBasic
- Subject: OT: question about programming in TinyBasic
- From: Nama <forums6000@mac.com>
- Date: Thu, 11 Mar 2010 18:08:53 -0800 (PST)
- Complaints-to: groups-abuse@google.com
- Injection-info: a10g2000pri.googlegroups.com; posting-host=125.51.211.58; posting-account=YxDBNAoAAAADNUK0-6B8JXnxU8jKgYwg
- Newsgroups: comp.sys.apple2
- Organization: http://groups.google.com
- User-agent: G2/1.0
- Xref: g2news1.google.com comp.sys.apple2:14647
Well, I know someone here will know the answer to this. I'm curious
how you would adapt the following lines to Tinybasic.
4110 IF X <> 1 AND X <> 23 THEN GOTO 5000
4120 IF X = 1 AND (Z < P - 1 OR Z > P + 4) THEN GOTO 6000
4130 IF X = 23 AND (Z < Q - 1 OR Z > Q + 4) THEN GOTO 6000
5010 IF P = 21 AND R = 1 THEN LET R = 0
5010 IF P = 0 AND R = -1 THEN LET R = 0
5010 IF Q = 21 AND S = 1 THEN LET S = 0
In the version of tinybasic that I'm using, within 'if...then' lines
I can not use 'and' or 'or' statements.
Does anyone have an easy and clean solution?
Thanks
Phil