Function gadgets::util::select::value

source ·
pub fn value<F: Field>(selector: F, when_true: F, when_false: F) -> F
Expand description

Returns the when_true value when the selector is true, else returns the when_false value.