what does "if false" mean below

  • Thread starter Thread starter rodchar
  • Start date Start date
R

rodchar

hey all,

what does the "<% if (false)...

<link href="/content/default.css" rel="stylesheet" type="text/css" />
<% if (false) {%>
<link href="../../content/default.css" rel="stylesheet"
type="text/css" />
<% } %>

if "what" is false?

thanks,
rodchar
 
hey all,

what does the "<% if (false)...

<link href="/content/default.css" rel="stylesheet" type="text/css" />
<% if (false) {%>
<link href="../../content/default.css" rel="stylesheet"
type="text/css" />
<% } %>

if "what" is false?
The 'what' is the expression being resolved. The hardwired 'what' is
more often found in while loops i.e.

while(true)
{
...
if (<boolean condtion>)
break
}

regards
A.G.
 
What follows "if" is always a boolean expression (that will ultimately
returns true or false). Here it will just always return false so this code
will never run...
 
thanks all for the help,
rod.

Patrice said:
What follows "if" is always a boolean expression (that will ultimately
returns true or false). Here it will just always return false so this code
will never run...
 
Back
Top