001    /**
002     * Implements the Cold Fusion Function iif
003     */
004    package railo.runtime.functions.dynamicEvaluation;
005    
006    import railo.runtime.PageContext;
007    import railo.runtime.exp.PageException;
008    import railo.runtime.ext.function.Function;
009    
010    public final class IIf implements Function {
011            public static Object call(PageContext pc , boolean bool, String str1, String str2) throws PageException {
012                    return bool?Evaluate.call(pc,new Object[]{str1}):Evaluate.call(pc,new Object[]{str2});
013            }
014    }