So I wrote this simple lua function since I thought it could be useful on some especial cases, but I can't get it to work for unknown reasons, since it works fine on the lua console.
Code:
function conditional(cond, true_str, false_str) if cond then return true_str else return false_str endend
It should let you input a conditional and output a string based on the result.