Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
variable = 0
do
if variable > 1 then
variable = variable - 2
end if
loop until vatiable < 2
if variable = 1 then
step 1
else
step 2
end if
This is probably basic knowledge to all of you, but I'm only in the ninth grade and have only made a handful of games, and therefore this is useful to my peers.
If YourChoice& then
YourChoice&=0
else
YourChoice&=1
end if
Print something on the screen here
'somewhere else in the program
'responds to the 'choice' you made
If YourChoice& then
yourcode here
else
yourcode here
end if
Come check out [url=http://www.freebasic.net/forum/index.php]FreeBASIC[/url]. The syntax is based on QuickBasic, but it expands to use pointers, operator overloading, etc... The list goes on and on!