[FX.php List] conditional statements

Gjermund Gusland Thorsen ggt667 at gmail.com
Thu Dec 16 03:21:13 MST 2004


 <div align="center">&nbsp;<?
if( $result['data'][$currentKey]['Budget1ProgramFee'][0] != 0 ) {
	echo $result['data'][$currentKey]['Budget1ProgramFee'][0];
} else {
	echo 'TBD';
}?>
                        </div>
                </td>
          </tr>
          <tr>
                <td scope="row">&nbsp;Room &amp; Board </td>
                <td scope="row">
                        <div align="center">&nbsp;<?
if( $result['data'][$currentKey]['Budget1RoomBoard'][0] != 0 ) {
	echo $result['data'][$currentKey]['Budget1RoomBoard'][0];
} else {
	echo 'N/A';
}?>
                        </div>


On Mon, 13 Dec 2004 14:09:37 -0800, Jane Chinn <Jane.Chinn at cwu.edu> wrote:
> Hi,
> 
> Can someone point me in the right direction with regard to converting
> cdml conditional statements to php using FX.php?  If there is some
> documentation I should read please let me know.
> 
> Here is an example I need assistance with:
> 
>                         <div align="center">&nbsp;
>                         [FMP-If: Field: Budget1ProgramFee .neq. 0]
>                                 $[FMP-Field: Budget1ProgramFee]
>                         [FMP-Else:]
>                                 TBD
>                         [/FMP-If]
>                         </div>
>                 </td>
>           </tr>
>           <tr>
>                 <td scope="row">&nbsp;Room &amp; Board </td>
>                 <td scope="row">
>                         <div align="center">&nbsp;
>                         [FMP-If: Field: Budget1RoomBoard .neq. 0]
>                                 $[FMP-Field: Budget1RoomBoard]
>                         [FMP-Else]
>                                 N/A
>                         [/FMP-If]
>                         </div>
> 
> Thanks,
> Jane
> 
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>


More information about the FX.php_List mailing list