<?xml version="1.0" encoding="windows-1252"?>
<node id="913792" title="Re: Multiple if-else statements using C-style ternary operator" created="2011-07-11 18:41:57" updated="2011-07-11 18:41:57">
<type id="11">
note</type>
<author id="625435">
james2vegas</author>
<data>
<field name="doctext">
This should be enough:&lt;br&gt;
&lt;code&gt;
print $status == 2 ? "HIGH "
    : $status == 1 ? "MODERATE "
    : "LOW ";
&lt;/code&gt;</field>
<field name="root_node">
913788</field>
<field name="parent_node">
913788</field>
</data>
</node>
