Skip to main content
Version: v6.5.0

Check-If-SubSet

Command Description​

Determine if it is a subset or not. Return true if yes, else return false

Command Prototype​

bRet = Set.IsSubSet(ObjSet,ObjSet1)

Parameter Description​

ParameterRequiredTypeDefaultDescription
ObjSetTrueexpressionObjSetThe set object to operate on
ObjSet1TrueexpressionObjSet1The sets to compare for intersections

return​

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

Demo​

Dim ObjSet 
Dim ObjSet1
Dim bRet
ObjSet = Set.Create()
Set.Add(ObjSet,1)
Set.Add(ObjSet,2)
// ObjSet = {1,2}

ObjSet1 = Set.Create()
Set.Add(ObjSet1,1)
Set.Add(ObjSet1,2)
Set.Add(ObjSet1,3)
Set.Add(ObjSet1,4)
// ObjSet1 = {1,2,3,4}

bRet = Set.IsSubSet(ObjSet,ObjSet1)
TracePrint(bRet)
/**
bRet = true
*/