JSON_SET_* Constant Group

From NWN Lexicon
Jump to: navigation, search
Nwnee logo.jpg Note: This article documents Neverwinter Nights: Enhanced Edition new content or changes/updates/fixes to 1.69 functions. These are all listed under the category and patches pages.
Used by JsonSetOp to determine which operation on two sets of arrays to perform.

Naming of items below:

  • v = value, or first array
  • o = option, or second array

The order is important for some of the set operations.

Constants

Constant Value Description
JSON_SET_SUBSET 1 (v <= o)

Returns true if every element in jValue is also in jOther.

JSON_SET_UNION 2 o)

Returns a new array containing values from both sides.

JSON_SET_INTERSECT 3 (v & o)

Returns a new array containing only values common to both sides.

JSON_SET_DIFFERENCE 4 (v - o)

Returns a new array containing only values not in jOther.

JSON_SET_SYMMETRIC_DIFFERENCE 5 (v ^ o)

Returns a new array containing all elements present in either array, but not both.

Version

This constants group was added in 1.86.8193.34 of NWN:EE.

See Also

functions: JsonSetOp