locked
Cast zero one strings to Boolean RRS feed

  • Question

  • User31568 posted

    Hi,

    I am getting my json result from MySQL and storing it into SecureStorage but because SecureStorage value is string my 0 & 1 is stored as string two

    So how can I later do:

    ``` if (Convert.ToBoolean(App.getUserInfo("EAIsMember")) == true) { ........ }

    ```

    Thanks, Jassim

    Saturday, September 19, 2020 10:17 AM

All replies

  • User397424 posted

    @JassimRahma so the input is string like "0" or "1". You want to store it as true or false. That the question?

    Thursday, November 5, 2020 10:05 AM