Table Of Contents

is_keyword

Version:
    Last Modified: March 15, 2017

    Determines whether a string is a keyword. Valid keywords are: 'break', 'case', 'catch', 'continue', 'else', 'elseif', 'end', 'for', 'function', 'global', 'if', 'otherwise', 'persistent', 'return', 'switch', 'try', and 'while'.

    Syntax

    c = is_keyword(a)
    Legacy name: iskeyword

    Inputs

    a

    String.

    Outputs

    c

    Returns 1 if a is a valid keyword. Otherwise, is_keyword returns 0. c is a Boolean.

    C = is_keyword('nan')

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics