bdeIsValidPortVariableType

Returns a value that shows whether or not a portType is a valid port variable type.

Syntax

validPort = bdeIsValidPortVariableType(portType)

Inputs

portType
A string of a port type.
Type: string

Outputs

validPort
The value that represents if the given port type is a valid port type. 1 = valid type, 0 = not a valid type.
Type: Boolean

Examples

Check if a port type is a valid type:

          validPort = bdeIsValidPortVariableType('fixedport');
        

          
            validPort = 1
          
        
Check if a port type is a valid type:

          validPort = bdeIsValidPortVariableType('asdfghjk');
        

          
            validPort = 0