on div (a, b) -- for simplicity type check of vars omitted res = value("float(a)/b") if voidP(res) then _player.alert("Division by zero!") else return res end if end