ejs , if statement

2,349 views
Skip to first unread message

NiroL

unread,
Jul 6, 2010, 5:04:18 AM7/6/10
to Embedded JavaScript
Hi ,

I have a simple question , is there an "if statement" available ,
something like this :

<% if vTest = '1' { %>
<tr><td>something</td></tr>
<% } %>

i don't know how to obtain a similar behavior wihtout duplicating
templates :s

Thank for your answer

Justin Meyer

unread,
Jul 15, 2010, 10:45:33 AM7/15/10
to embeddedj...@googlegroups.com
> <% if( vTest == '1' ){ %>

> <tr><td>something</td></tr>
> <% } %>

Sent from my iPhone

On Jul 6, 2010, at 4:04 AM, NiroL <lauren...@gmail.com> wrote:

> Hi ,
>
> I have a simple question , is there an "if statement" available ,
> something like this :
>

> <% if( vTest == '1' ){ %>


> <tr><td>something</td></tr>
> <% } %>
>
> i don't know how to obtain a similar behavior wihtout duplicating
> templates :s
>
> Thank for your answer
>

> --
> You received this message because you are subscribed to the Google Groups "Embedded JavaScript" group.
> To post to this group, send email to embeddedj...@googlegroups.com.
> To unsubscribe from this group, send email to embeddedjavascr...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/embeddedjavascript?hl=en.
>

Reply all
Reply to author
Forward
0 new messages