Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

why to use "if(false){java comands}" in jsp ?

i read that "if(false){java comands}" is a java trick .
how does it work ? and when i should use it ?
thank's
[123 byte] By [natAuto] at [2007-11-11 8:17:50]
# 1 Re: why to use "if(false){java comands}" in jsp ?
its no trick.

if (a>b) //true
{
//do stuff
}
else //result above returned false
{
//do this instead
}
Phaelax at 2007-11-11 22:35:51 >
# 2 Re: why to use "if(false){java comands}" in jsp ?
"java commands" mean write your own java commands.

You should try and avoid scriplets in JSP anyway.
arul at 2007-11-11 22:36:56 >
# 3 Re: why to use "if(false){java comands}" in jsp ?
its no trick.

if (a>b) //true
{
//do stuff
}
else //result above returned false
{
//do this instead
}

hi there, but the problem is not " if (a>b) //true" or " else ". the question is about "if (false)..." when the false is a word , not any condition.
natAuto at 2007-11-11 22:37:48 >