Rather than depending on the existence of the variables, could you give them an arbitrary null/empty/false value as a default and test for them being not null/empty/false ? Would that work ?
-----Original Message----- From: Stefan Pavlik [mailto:stefan.pav...@gmail.com] Sent: 21 July 2011 10:39 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Preprocessor <?if $(var.A) or $(var.B) ?> On 21/07/2011 11:30, Peter Shirtcliffe wrote: > This works for us > > <?ifndef compression ?> > <?define compression = "high" ?> > <?endif?> This works also for me, but it is not possible (AFAIK) to use 'OR', 'AND' operators in <?ifdef?>, <?ifndef?> expressions. -- Stefan Pavlik | stefan.pav...@gmail.com Lietavska 14 | 851 06 Bratislava | Slovak Republic ----------------------------------------------------------------------------- - 5 Ways to Improve & Secure Unified Communications Unified Communications promises greater efficiencies for business. UC can improve internal communications as well as offer faster, more efficient ways to interact with customers and streamline customer service. Learn more! http://www.accelacomm.com/jaw/sfnl/114/51426253/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ 5 Ways to Improve & Secure Unified Communications Unified Communications promises greater efficiencies for business. UC can improve internal communications as well as offer faster, more efficient ways to interact with customers and streamline customer service. Learn more! http://www.accelacomm.com/jaw/sfnl/114/51426253/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users