I’ve been converting a JavaScript calculation to AppleScript, but I’m stymied by this line:
I understand that Math.pow(x, y) → x^y, but I don’t know what the boolean followed by a question mark means. I’m guessing that it means:
if s < 0 then
set s to -(s ^ (1 / 3))
else
set s to (s ^ (1 / 3))
end if
Is that correct?