• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

calendar_monthly header still showing

Scheduled Pinned Locked Moved Troubleshooting
8 Posts 4 Posters 3.0k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    cowboysdude Module Developer @Mykle1
    last edited by Feb 26, 2017, 4:43 PM

    @Mykle1

    Yes true and false in that case are used as a boolean so you don’t use ’ ’ or " " :)

    
    Very often, in programming, you will need a data type that can only have one of two values, like
    
    YES / NO
    ON / OFF
    TRUE / FALSE
    For this, JavaScript has a Boolean data type. It can only take the values true or false.
    
    
    

    I had to learn that too :)

    1 Reply Last reply Reply Quote 1
    • S Offline
      strawberry 3.141 Project Sponsor Module Developer @Mykle1
      last edited by strawberry 3.141 Feb 26, 2017, 7:08 PM Feb 26, 2017, 7:07 PM

      @Mykle1 In case you want to know why:

      'false' is a string and a string always represents the boolean true, so 'test', 'true' and 'false' all become true it doesn’t matter what the content of the string is.

      Please create a github issue if you need help, so I can keep track

      M 1 Reply Last reply Feb 26, 2017, 10:32 PM Reply Quote 1
      • M Offline
        Mykle1 Project Sponsor Module Developer @strawberry 3.141
        last edited by Mykle1 Feb 26, 2017, 10:32 PM Feb 26, 2017, 10:32 PM

        @strawberry-3.141 said in calendar_monthly header still showing:

        @Mykle1 In case you want to know why:
        ‘false’ is a string and a string always represents the boolean true, so ‘test’, ‘true’ and ‘false’ all become true it doesn’t matter what the content of the string is.

        So, the single quotes ' are what make it a string? Meaning, whatever is inside single quotes is considered a string?
        And if that is so, then what is the word true or false without the quotes called? A value? A parameter?

        Obviously, I’m still confused, but thank you for the lesson.

        Create a working config
        How to add modules

        S 1 Reply Last reply Feb 26, 2017, 10:36 PM Reply Quote 0
        • S Offline
          strawberry 3.141 Project Sponsor Module Developer @Mykle1
          last edited by Feb 26, 2017, 10:36 PM

          @Mykle1 everything in single or double quotes is a string, string is a type for text.

          There are multiple types:

          • object {}
          • array []
          • number 2, -17 and 3.14
          • string "I am a string" and 'me too'
          • boolean true or false

          Please create a github issue if you need help, so I can keep track

          M 1 Reply Last reply Feb 27, 2017, 12:31 AM Reply Quote 1
          • M Offline
            Mykle1 Project Sponsor Module Developer @strawberry 3.141
            last edited by Feb 27, 2017, 12:31 AM

            @strawberry-3.141 said in calendar_monthly header still showing:

            everything in single or double quotes is a string, string is a type for text.

            Ok, thank you. I do appreciate the information. Some of it is starting to make sense. I’ve learned quite a bit in the short time that I’ve been here.

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              8/8
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy