gitlab.com/evatix-go/core@v1.3.55/bytetype/GetSet.go (about)

     1  package bytetype
     2  
     3  func GetSet(
     4  	isCondition bool,
     5  	trueValue Variant,
     6  	falseValue Variant,
     7  ) Variant {
     8  	if isCondition {
     9  		return trueValue
    10  	}
    11  
    12  	return falseValue
    13  }