BrandonG
06-26-2007, 12:17 PM
I have a multi-conditional step that is executed with a vbld_StepStarting() fuction to set values if necessary or allow the step to execute. The problem is that I want to add another condition but I can't figure out how.
I want to test on if a macro is defined. I know this is one of the drop down options in the conditions for the step through the GUI but is there a way to write the same type of check in script?
Function vbld_StepStarting()
if application.Macros(vbldProject).Item("DEFAULT_SS_Version") = application.macros(vbldProject).item("PROMPT_Supported_Version") then
Default_SS_Version = application.Macros(vbldProject).Item("DEFAULT_SS_Version")
application.Macros(vbldTemporary).Add "SS_Version", Default_SS_Version
application.Macros(vbldTemporary).Add "SS_Version_NODOTS", REPLACE(Default_SS_Version,".","")
vbld_StepStarting=false
'elseIf application.Macros(vbldTemporary).item("BLAH_BLAH") is defined ' this is the line that when it tries to find the value of Blah_Blah it prompts for user input. This is my pseudo code I would like.
ELSE
vbld_StepStarting=true
end if
end function
I want to test on if a macro is defined. I know this is one of the drop down options in the conditions for the step through the GUI but is there a way to write the same type of check in script?
Function vbld_StepStarting()
if application.Macros(vbldProject).Item("DEFAULT_SS_Version") = application.macros(vbldProject).item("PROMPT_Supported_Version") then
Default_SS_Version = application.Macros(vbldProject).Item("DEFAULT_SS_Version")
application.Macros(vbldTemporary).Add "SS_Version", Default_SS_Version
application.Macros(vbldTemporary).Add "SS_Version_NODOTS", REPLACE(Default_SS_Version,".","")
vbld_StepStarting=false
'elseIf application.Macros(vbldTemporary).item("BLAH_BLAH") is defined ' this is the line that when it tries to find the value of Blah_Blah it prompts for user input. This is my pseudo code I would like.
ELSE
vbld_StepStarting=true
end if
end function