package langext

func FormatBool(v bool, strTrue string, strFalse string) string {
	if v {
		return strTrue
	} else {
		return strFalse
	}
}

func Conditional[T any](v bool, resTrue T, resFalse T) T {
	if v {
		return resTrue
	} else {
		return resFalse
	}
}