Match Boolean End of trail navigation bar

Table of Contents >Quanser Rapid Control Prototyping Toolkit >VI and Function Reference >VIs - By Category >VI Categories >Utility VIs and Functions >

Match Enum

Match Enum

Owning Palette:Utilities

Requirements:Quanser Rapid Control Prototyping Toolkit, LabVIEW 2020 or newer


Description

Returns the index of the string in the possible values array that matches the input string. If no match is found then the default value is output. The matches indicator shows whether a match was found or not.


Required Inputs All required inputs must be wired. They appear in bold text in the context help window for the VI.
possible values

possible values is an array of strings to which the string input is compared.


Outputs

match

match is true if the input string matched one of the possible values. Otherwise it is false.

value

value is the first index in the possible values array that matches the input string.


Details

This VI returns the index of the string in the possible values array that matches the input string. The possible values array is a required input and should not be an empty array. If no match is found then the default value is output. The matches indicator shows whether a match was found or not.

If the possible values input is an empty array, then an empty string will be treated as a match. If string is not empty then it will not be treated as a match and the default value will be output.


Feedthrough Behaviour

All input/output pairs of this function have direct feedthrough behaviour.


Examples

There are currently no examples


See Also

  • Match Boolean

    Returns true if the input string is "true", "yes", "y", "on" or "1". Returns false if the input string is "false", "no", "n", "off" or "0". If the input string is none of these values then it returns an error and the selection output is set to the default input.


    Targets

    Target

    Supported

    Comments

    RCP Windows (64-bit) Target

    Yes

    Fully supported.

     

    navigation bar