JCG,
Welcome to the forum. ![]()
When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.
Thanks in advance
Guide to Posting Code - Redux <---- Click
![]()
( !! Sometimes the preformatted text button hides behind the settings gear symbol.
)
They are not.
You misplaced the parenthesis in your second function.
function evaluate_2 {
if (-not(-not ($tst1 -eq 'a') -and -not ($tst1 -eq 'b'))) {
'success_2';
}
}