if-then-else statement - 11/05/08 05:08 PM
I don't want the if-then-else statement to execute if either or both or there are $true ('set abc $true'). Technically neither will be '$true' at the same time. I unset the variables at the end of the execution, so they are $null (not 0 or false). So the only way I could get this to work was if I checked for a negative $null:
abc= $null (was unset at the end of it's routine)
cbs = $true (is set to $true before this routine)
if (!abc = $null) || (!%cbs = $null) {
...
}
Is there a better way to do this? Should I not unset vars (causes a $null), but change them to 'set %abc 0'?
abc= $null (was unset at the end of it's routine)
cbs = $true (is set to $true before this routine)
if (!abc = $null) || (!%cbs = $null) {
...
}
Is there a better way to do this? Should I not unset vars (causes a $null), but change them to 'set %abc 0'?