Conditionals
DCL supports a simple if-elseif-else-endif conditional for testing whether one string equals another.
<% if compare="foo" equal="foo" %><% if compare="foo" equal="bar" %><% if compare="foo" notequal="foo" %><% if compare="foo" notequal="bar" %><% if compare=<% contact field="firstname" %> equal="Bart" %>
You're Homer's son!
<% elseif compare=<% contact field="firstname" %> equal="Lisa" %>
You're Homer's elder daughter!
<% elseif compare=<% contact field="firstname" %> equal="Maggie" %>
You're Homer's younger daughter!
<% else %>
Doh!
<% endif %>Last updated
Was this helpful?

