@@ -110,11 +110,11 @@ public override Operand Calculate(AlgorithmEngine work)
110110 {
111111 var args1 = func1 . Calculate ( work ) ;
112112 if ( func2 != null ) {
113- if ( args1 . IsNull ) { return func2 . Calculate ( work ) ; }
113+ if ( args1 . Type == OperandType . NULL ) { return func2 . Calculate ( work ) ; }
114114 if ( args1 . Type == OperandType . TEXT && args1 . TextValue == null ) { return func2 . Calculate ( work ) ; }
115115 return args1 ;
116116 }
117- if ( args1 . IsNull ) { return Operand . True ; }
117+ if ( args1 . Type == OperandType . NULL ) { return Operand . True ; }
118118 if ( args1 . Type == OperandType . TEXT && args1 . TextValue == null ) { return Operand . True ; }
119119 return Operand . False ;
120120 }
@@ -134,11 +134,11 @@ public override Operand Calculate(AlgorithmEngine work)
134134 {
135135 var args1 = func1 . Calculate ( work ) ;
136136 if ( func2 != null ) {
137- if ( args1 . IsNull || args1 . IsError ) { return func2 . Calculate ( work ) ; }
137+ if ( args1 . Type == OperandType . NULL || args1 . IsError ) { return func2 . Calculate ( work ) ; }
138138 if ( args1 . Type == OperandType . TEXT && args1 . TextValue == null ) { return func2 . Calculate ( work ) ; }
139139 return args1 ;
140140 }
141- if ( args1 . IsNull || args1 . IsError ) { return Operand . True ; }
141+ if ( args1 . Type == OperandType . NULL || args1 . IsError ) { return Operand . True ; }
142142 if ( args1 . Type == OperandType . TEXT && args1 . TextValue == null ) { return Operand . True ; }
143143 return Operand . False ;
144144 }
@@ -252,7 +252,7 @@ public Function_ISNULLOREMPTY(FunctionBase func1) : base(func1)
252252 public override Operand Calculate ( AlgorithmEngine work )
253253 {
254254 var args1 = func1 . Calculate ( work ) ;
255- if ( args1 . IsNull ) { return Operand . True ; }
255+ if ( args1 . Type == OperandType . NULL ) { return Operand . True ; }
256256 if ( args1 . Type != OperandType . TEXT ) { args1 = args1 . ToText ( "Function '{0}' parameter {1} is error!" , "IsNullOrEmpty" , 1 ) ; if ( args1 . IsError ) { return args1 ; } }
257257 return Operand . Create ( string . IsNullOrEmpty ( args1 . TextValue ) ) ;
258258 }
@@ -271,7 +271,7 @@ public Function_ISNULLORWHITESPACE(FunctionBase func1) : base(func1)
271271 public override Operand Calculate ( AlgorithmEngine work )
272272 {
273273 var args1 = func1 . Calculate ( work ) ;
274- if ( args1 . IsNull ) { return Operand . True ; }
274+ if ( args1 . Type == OperandType . NULL ) { return Operand . True ; }
275275 if ( args1 . Type != OperandType . TEXT ) { args1 = args1 . ToText ( "Function '{0}' parameter {1} is error!" , "IsNullOrWhiteSpace" , 1 ) ; if ( args1 . IsError ) { return args1 ; } }
276276 return Operand . Create ( string . IsNullOrWhiteSpace ( args1 . TextValue ) ) ;
277277 }
0 commit comments