# \[ANNOUNCE\] node-red-contrib-blockly : 2.0.0 betas (currently at beta 2)

**URL:** https://discourse.nodered.org/t/announce-node-red-contrib-blockly-2-0-0-betas-currently-at-beta-2/49092
**Category:** Share Your Nodes
**Created:** [29 July 2021 19:14 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-blockly-2-0-0-betas-currently-at-beta-2/49092 "2021-07-29T19:14:08Z")
**Posts on this page:** 12
**Page:** 2

<div class="post-metadata">

### Author: ![dougle03](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dougle03/32/32979_2.png) [@dougle03](https://discourse.nodered.org/u/dougle03)
#### Post date: [3 August 2021 07:02 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-blockly-2-0-0-betas-currently-at-beta-2/49092/21 "2021-08-03T07:02:12Z")

</div>

Any news on when this will be available within NodeRed from the Palette? Currently only showing the 3 year old version?  
Thanks

---

<div class="post-metadata">

### Author: ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)
#### Post date: [3 August 2021 07:07 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-blockly-2-0-0-betas-currently-at-beta-2/49092/22 "2021-08-03T07:07:12Z")

</div>

> [@dougle03](#):
>
> Any news on when this will be available within NodeRed from the Palette?

Hi @dougle03,  
Normally in a couple of weeks from now. We hope that some people will test our beta, and that our translators have time to translate the texts.  
P.S. There will also arrive at least one extra beta version, because I found a bug last night ...

---

<div class="post-metadata">

### Author: ![dougle03](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dougle03/32/32979_2.png) [@dougle03](https://discourse.nodered.org/u/dougle03)
#### Post date: [3 August 2021 07:43 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-blockly-2-0-0-betas-currently-at-beta-2/49092/23 "2021-08-03T07:43:13Z")

</div>

Excellent, I'll look forward to it, thanks.

Note: I'm not a sufficiently competent user to evaluate Beta modules; I'd likely cause more confusion rather than help... lol

---

<div class="post-metadata">

### Author: ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)
#### Post date: [3 August 2021 09:27 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-blockly-2-0-0-betas-currently-at-beta-2/49092/24 "2021-08-03T09:27:03Z")

</div>

Any user that can use the final release of our node afterwards and complain that something doesn't work, is also an awesome beta user 😉

---

<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 August 2021 08:15 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-blockly-2-0-0-betas-currently-at-beta-2/49092/25 "2021-08-04T08:15:06Z")

</div>

One of the visually nicest new features is we can now change the appearance of the Blockly blocks

As a long time Scratcher, I've always disliked the default appearance but now I can switch to the Zelos theme via the config  
Default

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/0/b0efb340eaa70ee50bbe6ed623a978559d513f69.jpeg)

Zelos

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/c/1c3b48e4ea4bb677fed7aa7504e2eff67ef5b9e6.jpeg)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/f/7f0dd66b473119274da4c60852d1cf9eb99113c1.jpeg)

---

<div class="post-metadata">

### Author: ![mikeS7](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mikes7/32/2026_2.png) [@mikeS7](https://discourse.nodered.org/u/mikeS7)
#### Post date: [17 August 2021 05:28 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-blockly-2-0-0-betas-currently-at-beta-2/49092/26 "2021-08-17T05:28:55Z")

</div>

Hi Bart,  
I want to return to the issue [#34](https://github.com/bartbutenaers/node-red-contrib-blockly/issues/34). Original idea was to support `|| <value>` construction, for example:  
var1 = (msg['payload']) || 'default';

In current version I can use variable or function but not value after default 'OR' block. Could you please implement dedicated `||` block.

---

<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: [17 August 2021 07:50 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-blockly-2-0-0-betas-currently-at-beta-2/49092/27 "2021-08-17T07:50:50Z")

</div>

I don't know if the existing and/or logic block can be modified to accept a value (as its a core Blocky block) but there is a simple workaround in 2.0.0

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/d/8d73476a95a5f31ed196135ca03ad852cca6fd74.png)  
which generates  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/3/73aae994982ed11da8274542d934895756195b08.png)

I sort of like the workaround as it signals that the code is diving into JS territory and so is the equivalent of having a sign saying "Beware the dragons beyond this point" 🙂

---

<div class="post-metadata">

### Author: ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)
#### Post date: [17 August 2021 08:08 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-blockly-2-0-0-betas-currently-at-beta-2/49092/28 "2021-08-17T08:08:08Z")

</div>

> [@cymplecy](#):
>
> I don't know if the existing and/or logic block can be modified to accept a value (as its a core Blocky block)

Indeed we haven't done something like that before. Perhaps it is even better if I ask the Blockly team to allow values as input, so we don't have start messing with their blocks. Because it seems like a useful feature...

---

<div class="post-metadata">

### Author: ![mikeS7](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mikes7/32/2026_2.png) [@mikeS7](https://discourse.nodered.org/u/mikeS7)
#### Post date: [17 August 2021 09:00 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-blockly-2-0-0-betas-currently-at-beta-2/49092/29 "2021-08-17T09:00:59Z")

</div>

Simon, it's finest solution with a Javascript block.

> [@cymplecy](#):
>
> I sort of like the workaround as it signals that the code is diving into JS territory and so is the equivalent of having a sign saying "Beware the dragons beyond this point"

Absolutely agree with you.

---

<div class="post-metadata">

### Author: ![dougle03](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dougle03/32/32979_2.png) [@dougle03](https://discourse.nodered.org/u/dougle03)
#### Post date: [17 August 2021 09:13 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-blockly-2-0-0-betas-currently-at-beta-2/49092/30 "2021-08-17T09:13:53Z")

</div>

> [@mikeS7](#):
>
> Simon, it's finest solution with a Javascript block.

But does that not step away from the point of blocky? i.e no code required? Is it not better to come up with a solution that does not step off the cliff into the JS syntax soup?

---

<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: [17 August 2021 09:27 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-blockly-2-0-0-betas-currently-at-beta-2/49092/31 "2021-08-17T09:27:47Z")

</div>

The use of the JS || as a shortcut in some cases to deal with default fallbacks is not obvious what it will do unless your a JS expert.

I think it's better to be explicit and write something along these lines

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/c/6c739f74f9a318f3fd36520d0dff6cabbb1d2828.jpeg)

[edit]meant to stick "default" in the else 🙂

---

<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: [17 August 2021 09:43 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-blockly-2-0-0-betas-currently-at-beta-2/49092/32 "2021-08-17T09:43:10Z")

</div>

This is a better example of equivalent Blockly only method

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/e/ee0cfdf921fcb6bea6982960a6dc0e42212027ad.jpeg)

[Previous page](https://discourse.nodered.org/t/announce-node-red-contrib-blockly-2-0-0-betas-currently-at-beta-2/49092.md?page=1)
