grandMA3 User Manual Publication
CheckFIDCollision(integer[, integer[, integer]])
grandMA3 User Manual » Plugins » Lua Functions - Object-Free API » CheckFIDCollision(integer[, integer[, integer]])
|
Version 2.1
|
Description
The CheckFIDCollision Lua function checks if a specific (range of) ID is available or already used. It can be used to check FID and any type of CID by adding a type integer.
Arguments
- Integer:
The first integer is the ID that should be checked. - Integer (optional):
This optional integer is a count of subsequent IDs that should also be checked. The default value is 1. For instance, if FID 21 to 25 should be checked, then the count integer should be 5. - Integer (optional):
This optional integer indicates the IDType. The default value is 0, which is the "Fixture" ID Type. See the example below for other valid integers.
Return
- Boolean:
The function returns a boolean.- True:
The ID is available. - False:
The ID is already used.
- True:
Example
This example prints feedback to the FID check:
Lua |
return function() |