I have the following functions
function checkA {
Write-Host "Checking A"
return $true
}
function checkB {
Write-Host "Checking B"
return $true
}
Now, in the main program I use both functions like:
if(checkA -And checkB){
Write-Host "Checks are ok"
return
}
I'm not getting the checkB Write-Host output and the IDE says the function is not even referenced when used like this.
Can someone tell me what's going on?