-
parseInt boolean value
Hello,
I’m using a source text property to control a boolean expression (in this case, to set auto leading on a text layer). I know I can just use 0/1 in my source text, but I would like to be able to use true/false instead.
Here’s what I have:
aL = thisComp.layer("orderData").text.sourceText.split(",")[3];
GEN = style.setAutoLeading(aL);The string being extracted from the source text is simply the word “true”. However, it still gives me an error, I assume because AE can’t parse the string as a boolean value.
Is there an easy way to parse the boolean value from the source text property and insert it directly into my setAutoLeading expression? I could of course use an IF statement to get around the issue, but I would like to check first if I’m missing a simpler solution.
Thanks!