Thanks for reaching out. Octopus will always assign variables values as string. If someone enters false into the variable, it’ll be the same as doing $variable = "false". In your case you’re gonna have to validate like this
#validating against a string
if($myboolvar -eq "true"){
# it's true
} else {
# it's false
}
or if you really need to deal with a variable of type bool
#validating against a string to then assign a real bool value
if($Myboolvar -eq "true"){
$myboolvar = $true
}
else{
$Myboolvar = $false
}
if($myBoolVar) {
# it's true
} else {
# it's false
}