You don't not embed expressions. Write your if as follows:
This is my directory
BOb
From: Michael Corr [mailto:mich...@aduratech.com]
Sent: Sunday, August 30, 2009 10:52 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Expanding Variables in if state
hi
I'm trying to check if a source string contains a substring, inside an
statement, but it doesn't seem to work when the source string is a variable
I have:
This is my directory
This never returns true. It doesn't seem to parse the ${dir.base} variable
inside the statement