snowflake.snowpark.CaseExpr.whenΒΆ CaseExpr.when(condition: Column | str, value: Column | None | bool | int | float | str | bytearray | Decimal | date | datetime | time | bytes | list | tuple | dict) β CaseExpr[source]ΒΆ Appends one more WHEN condition to the CASE expression. Parameters: condition β A Column expression or SQL text representing the specified condition. value β A Column expression or a literal value, which will be returned if condition is true.