--- layout: stdlib-reference --- # operator?: ## Description ## Signature
T operator?:<T>(
    bool condition,
    T ifTrue,
    T ifFalse);

vector<T, N> operator?:<T, int N>(
    vector<bool, N> condition,
    vector<T, N> ifTrue,
    vector<T, N> ifFalse);

matrix<T, N, M> operator?:<T, int N, int M>(
    matrix<bool, N, M> condition,
    matrix<T, N, M> ifTrue,
    matrix<T, N, M> ifFalse);

## Generic Parameters #### T #### N : int #### M : int ## Parameters #### condition : bool #### ifTrue : [T](operatorx3Fx3A.html#typeparam-T) #### ifFalse : [T](operatorx3Fx3A.html#typeparam-T) #### condition : [vector](../types/vector/index.html)\ #### ifTrue : [vector](../types/vector/index.html)\<[T](../types/vector/index.html#typeparam-T), [N](../types/vector/index.html#decl-N)\> #### ifFalse : [vector](../types/vector/index.html)\<[T](../types/vector/index.html#typeparam-T), [N](../types/vector/index.html#decl-N)\> #### condition : [matrix](../types/matrix/index.html)\ #### ifTrue : [matrix](../types/matrix/index.html)\<[T](../types/matrix/t-0.html), [N](../types/matrix/index.html#decl-N), [M](../types/matrix/index.html#decl-M)\> #### ifFalse : [matrix](../types/matrix/index.html)\<[T](../types/matrix/t-0.html), [N](../types/matrix/index.html#decl-N), [M](../types/matrix/index.html#decl-M)\>