We use this approach for step conditions:
condition: eq(${{ parameters.runBuild }}, true)
This works for us, its a slight tweak in your approach.