updated ternary operator for compilation with older railo versions