UBB.Dev
Posted By: Shark5060 if then doesn't work - 05/01/2002 1:21 PM
Hi.

I want to modify the PMSystem from jordo a little bit, but it doesn't work

Code
[/code]If the Cookie is "0" (zero) then the color (later with this color the Digit is printed) should be "#ffffff" anf if not then the color  should be "#ff0000"... why this doesn't work ??

This is the part, where the Text is printed:
[code]
Posted By: PF Re: if then doesn't work - 05/01/2002 3:03 PM
First of all we need to line up your checks smile

Code
[/code][code]
Secondly, if you're doing 1 lines in if then else then you dont need the curlys.
Posted By: Shark5060 Re: if then doesn't work - 05/01/2002 5:02 PM
this doesn't work too, NOTHING is printed again...
Posted By: PF Re: if then doesn't work - 05/01/2002 5:17 PM
hehe I see whats wrong now, we're blending perl with js wink

Code
[/code]and

[code]
give that a whirl.

EDIT: of course I spot something wrong stright away
Posted By: Shark5060 Re: if then doesn't work - 05/01/2002 5:39 PM
I tried and tried, and SO it works:

[code][/code]Thank you very much...

but I need the "{" and "}", without it doesn't work.
© UBB.Developers