-
Extracting data from text layer (non-numeric)
Hello!
I have a dropdown menu that is supposed to react to data in a text layer. I can’t get it to work using a simple parseInt, and from what I can gather, that only works with numerical values(?).
Is there some other way to do this? Here is my expression so far:
var y = text.sourceText;
var x = parseInt(y);
if (x == “JP_ja”) {
2;
} else {
1;
}Thanks in advance!