"Sputnik" help  
Sputnik Help
NbtCompare(<nbt1>, <nbt2>)

Description

Compares two NBT (Named Binary Tag) objects for equality.

Parameters

<nbt1> The first NBT object to compare.
<nbt2> The second NBT object to compare.

Return Value

Success: Returns true if the NBT objects are equal, false otherwise.
Failure: Returns false if the NBT objects have different types, names, or values.

Remarks

The NbtCompare function performs a deep comparison of the two NBT objects. It checks if the objects have the same NBT type, name, and value. If all these attributes match, the function returns true. If the objects have different types, names, or values, the function returns false.

Related

Example

Example of usage:

my $nbt1 = Nbt("Hello World!", "myTag");
my $nbt2 = Nbt("Hello World!", "myTag");
my $nbt3 = Nbt("Hello Sputnik!", "myTag");

say NbtCompare($nbt1, $nbt2);
say NbtCompare($nbt1, $nbt3);

// PRINTS
// true
// false

 


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org