If
by Skylar Kelty · in Torque Game Engine · 05/18/2006 (1:58 pm) · 2 replies
Hi,
Sorry for posting so soon after the last but i realy need help
I'm trying to work out the 'if' statement
I have:
$Game::Name = "DawnOfMen";
if ( $Game::Name !$= "DawnOfMen" ) {
echo("--------- Initializing DawnOfMen ---------");
}
else
echo("--------- Define name type! ---------");
It always outputs
"--------- Define name type! ---------"
and never
"--------- Initializing DawnOfMen ---------"
Why?
I must be doing something wrong
Thanks in advance
Sorry for posting so soon after the last but i realy need help
I'm trying to work out the 'if' statement
I have:
$Game::Name = "DawnOfMen";
if ( $Game::Name !$= "DawnOfMen" ) {
echo("--------- Initializing DawnOfMen ---------");
}
else
echo("--------- Define name type! ---------");
It always outputs
"--------- Define name type! ---------"
and never
"--------- Initializing DawnOfMen ---------"
Why?
I must be doing something wrong
Thanks in advance
About the author
Torque 3D Owner Peter Simard
Default Studio Name
if ( $Game::Name !$= "DawnOfMen" ) {
to:
if ( $Game::Name $= "DawnOfMen" ) {
Using the exclamation point infront means not equal to, instead of equal to.