MCPcopy Create free account
hub / github.com/corestoreio/pkg / SQLIf

Function SQLIf

sql/dml/expression.go:108–113  ·  view source on GitHub ↗

SQLIf writes a SQL IF() expression. IF(expr1,expr2,expr3) If expr1 is TRUE (expr1 <> 0 and expr1 <> NULL) then IF() returns expr2; otherwise it returns expr3. IF() returns a numeric or string value, depending on the context in which it is used. Returns a []string.

(expression, true, false string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestCondition_ColumnFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestCondition_ColumnFunction · 0.68