Hi,
I've written some Shared Scripts that act as generic utilities. I have some instances where I'd like to use these scripts as a job condition in some jobs and as a job step in other jobs.
For a condition, I have the scripts returning true or false. For a step, I have them returning a numeric value. Is it possible to sniff out how the script is being used at runtime and set the return value based on that property?
For example:
if (adTempus.SomeCollection["someProperty"] == "condition")
{
return true/false;
}
else if (adTempus.SomeCollection["someProperty"] == "step")
{
return 0/1/2;
}