# Blockly help required

**URL:** <https://discourse.nodered.org/t/blockly-help-required/85190>\
**Category:** General\
**Created:** [4 February 2024 16:09 UTC](https://discourse.nodered.org/t/blockly-help-required/85190 "2024-02-04T16:09:59Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![magicman](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@magicman](https://discourse.nodered.org/u/magicman)\
**Post date:** [4 February 2024 16:09 UTC](https://discourse.nodered.org/t/blockly-help-required/85190/1 "2024-02-04T16:09:59Z")

</div>

Hi,  
I am using blockly for the first time and struggling..i wish to create a statement of.. if msg.stoptimer =" stop" then .......but cannot work out which blockly process to go through.  
any help would be appreciated

thanks in advance

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [4 February 2024 16:35 UTC](https://discourse.nodered.org/t/blockly-help-required/85190/2 "2024-02-04T16:35:37Z")

</div>

I'm away from computer but I would create a variable called stopTimer

Then use the get block to get msg stoptimer and set your variable to its value

Then you can use the if block to test if it equals stop

---

<div class="post-metadata">

**Author:** ![magicman](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@magicman](https://discourse.nodered.org/u/magicman)\
**Post date:** [4 February 2024 17:28 UTC](https://discourse.nodered.org/t/blockly-help-required/85190/3 "2024-02-04T17:28:35Z")

</div>

hi @cymplecy ,  
Thanks for replying yet again to a newbie,  
If at any point you have time could you send me the blockly blocks i need to do this.

Thanks  
Len

\*\*\* realised how to do it now! sorry to be a nuisance 🙂

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [4 February 2024 22:07 UTC](https://discourse.nodered.org/t/blockly-help-required/85190/4 "2024-02-04T22:07:45Z")

</div>

Your not a nuisance at all 🙂

I'm a low code/block programming evangelist so always glad to help.

Glad you've managed to get going with it 🙂

---

<div class="post-metadata">

**Author:** ![magicman](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@magicman](https://discourse.nodered.org/u/magicman)\
**Post date:** [6 February 2024 14:13 UTC](https://discourse.nodered.org/t/blockly-help-required/85190/5 "2024-02-06T14:13:00Z")

</div>

hi @cymplecy is it possible to use an array in blockly and if so which block ? ..the array i want to use is.... [45,ltemp,50,90,htemp] where ltemp references msg,ltemp and htemp references msg.htemp

Thanks  
Len

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [6 February 2024 14:28 UTC](https://discourse.nodered.org/t/blockly-help-required/85190/6 "2024-02-06T14:28:40Z")

</div>

Yes.

Basically use list blocks

I'm on way to airport but got 6 hours to kill so will power up laptop while I'm there. Might be an hour's time once I've got thru security though

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [6 February 2024 15:21 UTC](https://discourse.nodered.org/t/blockly-help-required/85190/7 "2024-02-06T15:21:09Z")

</div>

Thru security but I've only got my daughter's Mac and I can't see how to install NodeRED on it so can't help out today I'm afraid ☹

---

<div class="post-metadata">

**Author:** ![magicman](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@magicman](https://discourse.nodered.org/u/magicman)\
**Post date:** [6 February 2024 15:34 UTC](https://discourse.nodered.org/t/blockly-help-required/85190/8 "2024-02-06T15:34:03Z")

</div>

Thanks anyway will look at list block ..enjoy your trip 😀

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [6 February 2024 15:38 UTC](https://discourse.nodered.org/t/blockly-help-required/85190/9 "2024-02-06T15:38:24Z")

</div>

Simon, just open a terminal window and run:  
`sudo npm install -g --unsafe-perm node-red`

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [6 February 2024 16:23 UTC](https://discourse.nodered.org/t/blockly-help-required/85190/10 "2024-02-06T16:23:26Z")

</div>

Thanks for info  
Just in gate seats so not got a comfortable desk to use now ☹

What we need is some sort of cloudy NodeRED........ 🙂

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [6 February 2024 17:00 UTC](https://discourse.nodered.org/t/blockly-help-required/85190/11 "2024-02-06T17:00:41Z")

</div>

Ok, I've placed my laptop on top of my suitcase but the big question is how do I get a terminal window ?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [6 February 2024 17:01 UTC](https://discourse.nodered.org/t/blockly-help-required/85190/12 "2024-02-06T17:01:51Z")

</div>

Look in applications/utilities

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [6 February 2024 17:07 UTC](https://discourse.nodered.org/t/blockly-help-required/85190/13 "2024-02-06T17:07:13Z")

</div>

And dear Henry, where is that 🙂  
I'm a Windows user 🙂

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [6 February 2024 17:15 UTC](https://discourse.nodered.org/t/blockly-help-required/85190/14 "2024-02-06T17:15:20Z")

</div>

Click on an empty area of the screen. At top left of screen you should see the apple and next to it `Finder` and then `File`. Click on `File` and open a `New Finder Window`. Look at the left sidebar for `Applications' and inside that folder for 'Utilities`. In there you should fond an icon for Terminal. Click on it,

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [6 February 2024 17:17 UTC](https://discourse.nodered.org/t/blockly-help-required/85190/15 "2024-02-06T17:17:41Z")

</div>

Thank you 🙂 I'm in 🙂

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [6 February 2024 17:18 UTC](https://discourse.nodered.org/t/blockly-help-required/85190/16 "2024-02-06T17:18:53Z")

</div>

I'll keep checking in but I've got a grouchy 3 year old granddaughter with me (sigh, this is suppose to be a free day)

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [6 February 2024 17:20 UTC](https://discourse.nodered.org/t/blockly-help-required/85190/17 "2024-02-06T17:20:02Z")

</div>

I don't have npm installed.  
I'm giving this up at this point.  
I'll be back home before I get it set up 🙂

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [6 February 2024 17:31 UTC](https://discourse.nodered.org/t/blockly-help-required/85190/18 "2024-02-06T17:31:56Z")

</div>

Just in case you want to try, check here

> **[Node.js — Installing Node.js via package manager](https://nodejs.org/en/download/package-manager/#macos)**
>
> Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.

You will find the directions for installing npm on the Mac there.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [7 February 2024 08:50 UTC](https://discourse.nodered.org/t/blockly-help-required/85190/19 "2024-02-07T08:50:11Z")

</div>

> [@magicman](#):
>
> [45,ltemp,50,90,htemp]

OK - I'm awake after a good nights sleep and back at my home computer 🙂  
Have you sorted yourself out or still looking for assistance?

This is how I would create your array  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/0/10e931eea8687ee76aa9e7c7ec12dd211fe5423d.png)

---

<div class="post-metadata">

**Author:** ![magicman](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@magicman](https://discourse.nodered.org/u/magicman)\
**Post date:** [7 February 2024 13:09 UTC](https://discourse.nodered.org/t/blockly-help-required/85190/20 "2024-02-07T13:09:55Z")

</div>

superb as always!

Thank you

Len

[Next page](https://discourse.nodered.org/t/blockly-help-required/85190.md?page=2)
