Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / not equal to

Author
Message
HeavyAmp
18
Years of Service
User Offline
Joined: 25th Oct 2006
Location: Castle in the Sky!
Posted: 6th Dec 2006 17:10
This may sound like a stupid question but how do you write is not like something in Dark Basic. I looked in the help files but they weren't very helpful.

eg if SomeVar (Does Not equal) 10 then Print "Hello"
Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 6th Dec 2006 17:16 Edited at: 6th Dec 2006 17:17
<>

^ Less than or greater than



HeavyAmp
18
Years of Service
User Offline
Joined: 25th Oct 2006
Location: Castle in the Sky!
Posted: 6th Dec 2006 17:59
Thanks for the help. I feel a bit stupid
Bozzy
18
Years of Service
User Offline
Joined: 10th Sep 2006
Location: Birmingham, UK
Posted: 6th Dec 2006 18:35
or couldnt you do:

if not somevariable=10 then print hello?
HeavyAmp
18
Years of Service
User Offline
Joined: 25th Oct 2006
Location: Castle in the Sky!
Posted: 6th Dec 2006 21:38 Edited at: 6th Dec 2006 21:39
I tried doing the not command but it didn't work
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 6th Dec 2006 22:57
"not" isn't in Darkbasic Classic. Even though I have Pro it's easier to just use "<>" than "a..10" (.. is the symbol for "not")... it sometimes throws me off.
Firewood
19
Years of Service
User Offline
Joined: 24th Jul 2005
Location:
Posted: 13th Dec 2006 20:11
He you know there is never a stupid question. The only stupid questions are the questions never made.
Even if you think its stupid. Its not. If do not know something just ask. Here you see that you see a stupid question. But the reaction you get was a normal anwser.

Never say a question is stupid. Questions not ask are stupid.

Login to post a reply

Server time is: 2024-11-27 01:40:11
Your offset time is: 2024-11-27 01:40:11