![](https://cdn.userecho.com/characters/65.png?1)
+1
Answered
Access block custom properties in UTL
Anyone know syntax for access a block's custom property in UTL? Context would be an to use as parameter in an if statement. It's one of the (many, many) undocumented parts of the language. Thanks folks!
Answer
![](/s/cache/ba/9f/ba9fcbde059e43091c0f00149d015b1c.png)
Answer
From within the block? Use this.block.custom.(custom property name)
, depending on the custom property type.
It's in the docs, but kind of hidden there. There is a dev-specific part of the documentation with it.
Also, there's a little question mark in the top-right corner that has some reference stuff.
![](/s/attachments/10530/1/355/7c4200e0607b4f8747beb12d51baf255.png)
Customer support service by UserEcho
From within the block? Use
this.block.custom.(custom property name)
, depending on the custom property type.It's in the docs, but kind of hidden there. There is a dev-specific part of the documentation with it.
Also, there's a little question mark in the top-right corner that has some reference stuff.