Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Another PBASIC Question (http://www.chiefdelphi.com/forums/showthread.php?t=2213)

Ian W. 31-01-2002 16:54

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. :D Sorry to waste anyones time, but I couldn't find the syntax online.

Joe Johnson 31-01-2002 17:25

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.

Ian W. 31-01-2002 17:43

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.

Morgan Jones 31-01-2002 18:46

http://www.parallaxinc.com/html_file...umentation.htm

Click the "BASIC Stamp Manual, Version 2.0c", or right click and select "Save Target As".

Ian W. 31-01-2002 21:36

Ah, so that's where Parallax was hiding it. :D 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.


All times are GMT -5. The time now is 01:16.

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