note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
existproperty
warning
This function starts with a lowercase letter.
Description
Check if a property exist.
Name | Description |
---|---|
id | The virtual machine to use, you should keep this zero. (optional=0) |
name[] | The property's name, you should keep this "". |
value | The property's unique ID. Use the hash-function to calculate it from a string. (optional=cellmin) |
Returns
True if the property exists and false otherwise.
Examples
if (existproperty(0, "", 123984334))
{
//the property exists, do something
}
Notes
tip
It is recommended to use the PVars/SVars or GVar plugin instead of these natives for being very slow.
Related Functions
- setproperty: Set a property.
- getproperty: Get the value of a property.
- deleteproperty: Delete a property.