snowflake.snowpark.CaseExpr.when¶ CaseExpr.when(condition: ColumnOrSqlExpr, value: ColumnOrLiteral) → CaseExpr[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.3.0/src/snowflake/snowpark/column.py#L766-L785)¶ 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.