package views func iff[T any](condition bool, trueValue, falseValue T) T { if condition { return trueValue } return falseValue }