Hey @Roket, since you are using the assignment operator =
instead of the comparison operator in JavaScript ===
, the is_need_corrector
variable always gets the value Y assigned and it will always return true. Since you want conversion to boolean values here, you don’t really need to use the conditional operator as the comparison operator returns boolean values. More details here.
Here’s an example workflow:
Hope that helps