Conditional expression functions.

This commit is contained in:
zer0sub 2019-06-03 17:38:47 +02:00
parent ca5a30983e
commit dca028295d
7 changed files with 89 additions and 15 deletions

View file

@ -124,7 +124,7 @@ type caseOperatorImpl struct {
func CASE(expression ...expression) caseOperatorExpression {
caseExp := &caseOperatorImpl{}
if len(expression) == 1 {
if len(expression) > 0 {
caseExp.expression = expression[0]
}