BasicMicro - Forums

www.basicmicro.com
It is currently Mon May 21, 2012 8:06 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: if then
PostPosted: Wed May 28, 2003 10:00 am 
Can I use a array as a expression for the if statement say

IF wall(current_cell)=1 THEN
IF..........THEN
ELSEIF.........
ELSE........
ENDIF
ELSEIF......
ELSE.......
ENDIF
.....=exp and gosub statement
When I compile it gives me a token error [ (]
I would assume it the array but why?



Top
  
 
 Post subject: Re: if then
PostPosted: Thu May 29, 2003 10:00 am 
i see micromouse code...

i think i had a similar problem with my mouse, and i ended up using the branch command and subroutines

it's faster and easier to read



Top
  
 
 Post subject: Re: if then
PostPosted: Sun Jun 08, 2003 10:00 am 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 11:00 am
Posts: 903
Location: Temecula, CA
Can I see the whole code please?

Thanks
Nathan


_________________
Tech Support
Basic Micro - Robotic Technology Evolved


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO