View Single Post
Old 11-12-2009, 12:31 PM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,703
VBScript doesn't do short-circuit evaluation, so you would need to create a project or global script function (View | Other Windows | Script Editor) like this:
Function CheckMacro(name)
  CheckMacro = False
  If vbld_AllMacros()(name) Is Nothing Then
    CheckMacro = True
    CheckMacro = CBool(vbld_AllMacros()(name))
  End If
End Function
and reference this function in the rule:

build only if macro or expression
is true
Reply With Quote