Dashboard > WebWork > ... > Control Tags > if
  WebWork Log In View a printable version of the current page.  
  if
Added by Onyeje Bose, last edited by Rainer Hermanns on Apr 13, 2007  (view change)
Labels: 
(None)

Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works.

Description

Perform basic condition flow. 'If' tag could be used by itself or with 'Else If' Tag and/or single/multiple 'Else' Tag.

Parameters

Name

Required

Default

Type

Description

test true   Boolean Expression to determine if body of tag is to be displayed
id false   Object/String id for referencing element. For UI and form tags it will be used as HTML id attribute

Examples

<ww:if test="%{false}">
    <div>Will Not Be Executed</div>
 </ww:if>
	<ww:elseif test="%{true}">
    <div>Will Be Executed</div>
 </ww:elseif>
 <ww:else>
    <div>Will Not Be Executed</div>
 </ww:else>

Links

Why won't the 'if' tag evaluate a one char string

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators