| Author |
==, !=, ? Anyone? |
Krasch
Joined: Feb 27, 2002 Posts: 91 From: Newport News Va
| Posted: 2002-12-20 00:53  
Can any one tell me what those symbols mean in the doctrine language? Its been bugging me for months, I think I know the < and > but the other two, I've been just guessing. I am appealing to you great and wise mission creators, please help.
Krasch.
_________________ Once more, we play our dangerous game... a game of chess, against our old adversary... The American Navy.
 
|
Thomasew
Joined: Feb 28, 2002 Posts: 1898 From: Bluewater Bay, South Africa
| Posted: 2002-12-20 01:21  
Hi Krasch
== --- Equal to. Used to check a variable against a value, as opposed to =, which assigns a value to a variable. e.g. IF XYZ == 0 THEN {
!= --- Not equal to. Self Explanatory. e.g. IF XYZ != 0 THEN {
Cheers
Tom
_________________ He Who Will Not Risk Cannot Win
 
|
ferenci
Joined: Apr 03, 2002 Posts: 283 From: Budapest, Hungary
| Posted: 2002-12-20 04:30  
Just as C.
_________________ "There are only two kinds of warships: submarines and targets."

 
|
Operator
Joined: Feb 28, 2002 Posts: 331 From: Toronto, Canada
| Posted: 2002-12-20 08:11  
Or java... I keep forgetting == is comparison not assignment :/
 
|
Krasch
Joined: Feb 27, 2002 Posts: 91 From: Newport News Va
| Posted: 2002-12-20 09:34  
Thomasew, once again you are the man (Thomasew == The Man). Thanks for the speedy reply, I'll just add another beer to your tab.
BTW we share a common kinship, my wife is from scotland (Dunfirmland) and I have just recently been "adopted" into the MacDougall clan. We've been married 10yrs... you can see how happy my in-laws were she ran into me.
Thanks again.
Krasch.
_________________ Once more, we play our dangerous game... a game of chess, against our old adversary... The American Navy.
 
|
Madcowz
Joined: Feb 28, 2002 Posts: 574 From: Cambridge (UK)
| Posted: 2002-12-20 09:48  
Krasch,
I used to live in Dunfermline a few years back. Also most of me mates come from around that area, ie Limekilns.
Before that it was Tayport, top north east corner of Fife.
Now Im in Cambridgeshire where its flat, windy, has no trees and is full of English.
Why??
Mad
EDIT: Was atually about 10-11 years ago, my how time flies
________________
Comsa
'When the hunter comes, the tiger runs with the deer'
[ This Message was edited by: madcowz on 2002-12-20 09:52 ]
 
|
Krasch
Joined: Feb 27, 2002 Posts: 91 From: Newport News Va
| Posted: 2002-12-20 09:58  
We are hoping to visit Dunfermline (appologies for my misspelling) in the next year or two finances pending
Krasch.
_________________
Once more, we play our dangerous game... a game of chess, against our old adversary... The American Navy.
[ This Message was edited by: Krasch on 2002-12-20 10:34 ]
 
|
Operator
Joined: Feb 28, 2002 Posts: 331 From: Toronto, Canada
| Posted: 2002-12-20 16:49  
That would be thomasew = the man ... thomasew == the man means he may be the man... or not
 
|
Krasch
Joined: Feb 27, 2002 Posts: 91 From: Newport News Va
| Posted: 2002-12-20 22:35  
Is that why the raise periscope user action doen't work? Now I'm confused again, would it be better to use > or < to get the periscope or mark target to work? If == means may or may not what do I use for "equal to"?
Sorry, I get confused easily
Krasch.
 
|
Thomasew
Joined: Feb 28, 2002 Posts: 1898 From: Bluewater Bay, South Africa
| Posted: 2002-12-20 23:27  
Hi Krasch
Operator certainly threw a Spanner in the works for you, with his post. He is technically correct though.
If you use = , then YOU are assigning a definite value to a variable. So, in your post, you should have said Thomasew = The Man.
If you use == , then you are checking for a condition whereby the value satifies the variable. So, possible values for the variable 'Thomasew' could be ... 'the Thug', 'the Lamebrain', 'the Delinquent', 'the Man' , 'the Lover' etc etc. So, only when the value was 'the Man' would the variable be correct, and == .
Actually, that's probably not a good example ... as all those values would satisfy the variable 'Thomasew'.
So, for the Periscope thing .... you would use == . i.e If the variable 'Periscope' == 'Raised' THEN ..... Goal Complete. So, as long as the Periscope is 'down' ... the goal will not complete as the variable 'Periscope' is != (not equal to) 'Raised'.
Hope that clears up the confusion.
Cheers
Tom
_________________
He Who Will Not Risk Cannot Win

[ This Message was edited by: Thomasew on 2002-12-20 23:49 ]
 
|
Krasch
Joined: Feb 27, 2002 Posts: 91 From: Newport News Va
| Posted: 2002-12-21 12:54  
Ok, actually its pretty clear to me now (clear as mud ). As far as the periscope thing, what I meant to say was the "markperiscopetarget" option, I think I remember you and some one else discussing this in another post but I can't find it. How do I get that to work?
Don't worry Thomasew, we all have a few extra "varibles".
Krasch
 
|
Operator
Joined: Feb 28, 2002 Posts: 331 From: Toronto, Canada
| Posted: 2002-12-22 12:36  
Quote: Actually, that's probably not a good example ... as all those values would satisfy the variable 'Thomasew'. /Quote
Nice try Thomasew 
 
|