--- 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)\