Content


NTL
Core
CFunctionTernary

CFunctionTernary


Class provides implementation of the ternary operator a ? b : c for expressions. It is being used by expression runners.

Function result is set to operand2 result if operand1 is true and to operand3 result otherwise.

You can find more information in comments below. Overrided methods can be found in corresponding base class or interface.

class CFunctionTernary :public CFunction
{
public:
    // IFunction methods 
    bool Run() override;

    CFunctionTernary(IErrorListener *error_listener, IFunction *operand1, IFunction *operand2, IFunction *operand3);
};
Namespace: nitisa::script
Include: Nitisa/Modules/Script/Functions/Comparison/FunctionTernary.h