IF Conditional Help/ CGI Template

Discussion in 'Programming' started by blwire, May 12, 2009.

  1. #1
    Hey im trying to edit a script and i want it to display text for certain file extensions. The script already stores the file name in <TMPL_VAR file_name> so how can i have it display certain text if theres ".exe" or ".php" in any part of file_name ? I tried this but i got an error. Here is the code im messing with so just a heads up i am an amateur :)
    <TMPL_IF file_name=".ext1/.ext2">
    Output Text
    </TMPL_IF>
    Code (markup):

     
    blwire, May 12, 2009 IP