Skip to main content

If-Null

Command Description

Determine if the data is null (NULL)

Command Prototype

bRet = IsNull(varData)

Parameter Description

ParameterRequiredTypeDefaultDescription
varDataTrueexpression$PrevResultThe data to be determined

return

bRet,The variable used to save the output of the command.

Demo

TracePrint("----------------------------------is it null--------- ---------------------------") 
//-------------------------------------------------------------------------------
//[Remarks] Determine whether the data type is a null value.
//Input parameter 1:
// varData----->target data
//out parameters:
// returns the result of whether it is a null value, true and false
a = Null
bRet = IsNull(a)
TracePrint("Let the variable a be null, judge whether it is empty, the result is: ")
TracePrint(bRet)

a = "Hello UiBot"
bRet = IsDictionary(a)
TracePrint("Let the variable a be Hello UiBot to judge whether the variable a is empty, the result is: ")
TracePrint(bRet)