what does "if false" mean below

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
 
R

Registered User

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.
 
P

Patrice

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...
 
R

rodchar

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top