I'm quite new to houdini and get around using “if” expression in font sop. I want to change the value (L or R) in font SOP by the value(hand: 0 or 1) in controller. This is what I write, but it could not work. if(`chs(“../CONTROLLER/hand”)` == 1){`L`}
if you're using hscript expressions and you want to return a string from an if statement, use ifs() instead.
additionally, you're using VEX syntax for that if() statement. you can't use VEX in a parameter expression like that. the expression version looks like this:
ifs(condition, “string if true”, “string if false”)