rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: SpiderPig902 on June 15, 2010, 03:59:11 PM

Title: If Statement
Post by: SpiderPig902 on June 15, 2010, 03:59:11 PM
ok im drawing a total blank.
I set this statement: ShowServerLimits=No
under special:strings.
Now im trying to base a IF THEN statement under that and cant seem to get it after hours
of messing with this thing!
I have this:
            {.if|{.!ShowServerLimits.}|Yes
            Test Worked
            .}

Its suppose to display the "test Worked" only if the "ShowServerlimits" is set to "Yes".

Please help.

Thanks

SP
Title: Re: If Statement
Post by: Mars on June 15, 2010, 04:07:18 PM
your error is that 'no' is not the false value

any text is true

0 or empty text is false


{.if|no|hello|bad.} and {.if|false|hello|bad.}  return twice HELLO

{.if|0|hello|bad.} and {.if||hello|bad.}  return twice BAD

you have to use

ShowServerLimits=0    or  ShowServerLimits=           for false
ShowServerLimits=No or ShowServerLimits=yes  or ShowServerLimits=anytext_except_0   for  True
Title: Re: If Statement
Post by: SpiderPig902 on June 15, 2010, 04:11:04 PM
yes. 260
Title: Re: If Statement
Post by: Mars on June 15, 2010, 04:12:18 PM
i reply in me post above
 ;)

topic closed
Title: Re: If Statement
Post by: SpiderPig902 on June 15, 2010, 04:16:24 PM
Great Thanks.
I changed it to ShowServerLimits=0
 and change the statement to:
{.if|{.!ShowServerLimits.}


and it works perfect.

Thanks

SP
Title: Re: If Statement
Post by: Mars on June 15, 2010, 04:25:09 PM
just a word:  i  am confuse   ??? , because SP is the symbol of SilentPliz  ;D
Title: Re: If Statement
Post by: SpiderPig902 on June 15, 2010, 04:48:07 PM
lol
SP = SpiderPig
Title: Re: If Statement
Post by: Mars on June 15, 2010, 07:47:26 PM
SdP ;)