Go to Post It's not all about the offensive "powerhouses", strategy is key. - smurfgirl [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Events   CD-Media   CD-Spy   FRC-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-31-2002, 03:54 PM
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Another PBASIC Question

Ok, heres my problem. I'm trying to use "If Statements" in PBASIC. I know how to use them, that's the easy part. What I need is someone to tell me the syntax for PBASIC. I tried to find it, but I couldn't. Here's what I need the syntax for:


Equal
Not Equal
Greater Than
Less Than
Greater Than or Equal To
Less Than or Equal To

I think that's all I need. I know some things, but I just want to double check, cause I'm also taking C++ at the same time, and I don't want to have conflicting syntaxes. Sorry to waste anyones time, but I couldn't find the syntax online.
  #2   Spotlight this post!  
Unread 01-31-2002, 04:25 PM
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at iRobot
AKA: Dr. Joe
FRC #3958 (FRC Teams Need Names?)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Boston, MA
Posts: 2,272
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Page 149 of Parallax Manual V2.0...

equal =
not equal <>
greater than >
greater than or equal to >=
less than <
less than or equal to <=

AND, OR and XOR can make complex tests.

&, ~, and other bitwise opperators are sometimes useful as well.


You should really download the manual. It is free in pdf format. The real paper book is worth the price too.

Joe J.
  #3   Spotlight this post!  
Unread 01-31-2002, 04:43 PM
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
My school got the manual and printed it out, but I'm at home now, and I couldn't find the URL for the manual. If anyone knows where to get the manual (pdf form), please tell me, cause I can't find it. Otherwise, thanks for the help, cause I wasn't sure about some of the operators.
  #4   Spotlight this post!  
Unread 01-31-2002, 05:46 PM
Morgan Jones Morgan Jones is offline
Registered User
no team
 
Join Date: Jan 2002
Location: Fairport, NY
Posts: 29
Morgan Jones is an unknown quantity at this point
http://www.parallaxinc.com/html_file...umentation.htm

Click the "BASIC Stamp Manual, Version 2.0c", or right click and select "Save Target As".
__________________
Morgan Jones
Team 578: Fairport High School/Gleason Works
  #5   Spotlight this post!  
Unread 01-31-2002, 08:36 PM
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Ah, so that's where Parallax was hiding it. Thanks a lot, cause now I don't need to post "stupid" question (yes, I know there's no such thing as a stupid question) that kind of just waste time.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PBASIC Syntax Question Raven_Writer Programming 4 08-20-2003 07:07 AM
Question Obtaining Pbasic 2.5 PyroPhin Programming 3 01-18-2003 12:26 AM
pbasic question Mike375 Programming 14 01-15-2003 05:54 AM
PBasic Question Melissa H. Programming 28 11-17-2002 05:53 PM
pbasic question archiver 2001 5 06-23-2002 10:50 PM


All times are GMT -5. The time now is 02:44 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi