I'm trying to assign a string literal to a variable using a ternary operator with the following code in the pre
block:
texta = "approve";
textd = "deny";
aAction = texta eq "approve" => "true" | "false";
dAction = textd eq "approve" => "true" | "false";
However, this is what comes across in the JavaScript:
var texta = 'approve';
var textd = 'deny';
var aAction = true;
var dAction = false;
Notice that aAction
and dAction
should be strings, but they are actually boolean literals.
Why is this happening?