• Gets the value of a variable if it exists, otherwise returns null.

    Parameters

    • key: string

      The key of the variable to retrieve.

    Returns string | null

    The value of the variable, or null if it does not exist or an error occurs.