The expression can be easily unrolled, elseif becomes and else block,
containing an if/ifdef/ifndef... i.e. if your desired language doesn't
support "elseif" you use "else, if"

<?ifdef FOO ?>
     <?define value=1 ?>
<?else ?>
     <?ifdef BAR ?>
          <?define value=2 ?>
     <?else ?>
          <?define value=3 ?>
     <?endif ?>
<?endif ?>


On Fri, Dec 18, 2009 at 5:27 PM, Rob Mensching <r...@robmensching.com> wrote:
> Doesn't look like that is supported.
>
> On Thu, Dec 17, 2009 at 8:23 PM, Steve Lessard <sless...@microsoft.com>wrote:
>
>> After reading the preprocessor documentation I didn't see any mention of
>> this, but I figured I'd ask anyways.  Is there any support for an expression
>> like <?elseif defined BAR ?> ?
>>
>>
>>
>> Example usage of this hypothetical expression:
>>
>>
>>
>> <?ifdef FOO ?>
>>
>> <?define value=1 ?>
>>
>> <?elseif defined BAR ?>
>>
>> <?define value=2 ?>
>>
>> <?else ?>
>>
>> <?define value=3 ?>
>>
>> <?endif ?>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Verizon Developer Community
>> Take advantage of Verizon's best-in-class app development support
>> A streamlined, 14 day to market process makes app distribution fast and
>> easy
>> Join now and get one step closer to millions of Verizon customers
>> http://p.sf.net/sfu/verizon-dev2dev
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>
>
>
> --
> virtually, Rob Mensching - http://RobMensching.com LLC
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to