Berkeley CSUA MOTD:Entry 41475
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/24 [General] UID:1000 Activity:popular
5/24    

2006/1/21-24 [Computer/SW/Languages/C_Cplusplus] UID:41475 Activity:nil
1/21    I'm trying to use Apache SSIs to do something like:
        <!--#ifndef expr="$title" -->
          <!--#set var="title" val="Default Title" -->
        <!--#endif -->
        But there's no #ifdef or #ifndef and #if doesn't like to parse
        undefined variables.  Is there any way to do this sort of thing?
        \_ Well, you could try <!--#if var="title" val="" -->.  But it
           sounds like you're getting into PHP territory.  -tom