Firetron’s FormatBoolean

1 175 Views 1 Comment 7 months ago
  • Formats a boolean to a string so it can be logged.

    • This topic was modified 1 month, 4 weeks ago by Firetron. Reason: Removed tip addresses
    HaasScript Code
    Sign in or Register to view
    • #1106
      Firetron
      Basic
      Up
      0
      Down

      HaasScript errors if you try to log a boolean like

      Log('Is Open: '..isOpen)

      You can do it by itself like

      Log(isOpen)

      But then you have to put its label on an extra log output before it.

      Is Open: true
      

      is much nicer to see in the log than

      Is Open:
      true
      
      • This reply was modified 7 months, 1 week ago by Firetron.
Login or Register to Comment

Unlock your crypto trading potential

Create a free account and enjoy everything we have to offer.

Join for Free