.hasval - macmcmeans/localDataStorage GitHub Wiki

localDataStorage.hasval( value )

This checks the store for the existence of value and returns true or false (query by value). The data type must match. The argument is case-sensitive.

EXAMPLES:

● localData.hasval( 1200.0047 )   -->   true ● localData.hasval( '1200.0047' )   -->   false

To determine if a certain key exists in the store, use haskey, and to check whether a specific data type exists, use hastype.

📝 NOTE: When working with Array Keys, this method is similar to contains (which checks a key for an element).