# \#handlebars

**URL:** https://forums.losant.com/tag/handlebars/16.md

[Latest](https://forums.losant.com/latest.md) · [Categories](https://forums.losant.com/categories.md) · [Tags](https://forums.losant.com/tags.md)

---

## [Why is eq not working](https://forums.losant.com/t/why-is-eq-not-working/5673)

<div class="topic-metadata">

**Author:** [@Tanner\_Williams](https://forums.losant.com/u/Tanner_Williams)\
**Replies:** 4\
**Last updated:** [November 6, 2024, 9:17pm UTC](https://forums.losant.com/t/why-is-eq-not-working/5673 "2024-11-06T21:17:28Z")

</div>

{{#each pageData.users}} \<option value="{{id}}" {{#eq ../pageData.device.tags.custodian id}}selected{{/eq}}\> {{../pageData.device.tags.custodian}} {{id}} \</option\> {{/each}} Im unsure wh…

---

## [Missing date shift in {{formatDate val formatStr}} before formattting?](https://forums.losant.com/t/missing-date-shift-in-formatdate-val-formatstr-before-formattting/5381)

<div class="topic-metadata">

**Author:** [@emcdee](https://forums.losant.com/u/emcdee)\
**Replies:** 1\
**Last updated:** [January 4, 2024, 9:40pm UTC](https://forums.losant.com/t/missing-date-shift-in-formatdate-val-formatstr-before-formattting/5381 "2024-01-04T21:40:13Z")

</div>

Unless I missed in ‘accessing payload data’, how do you shift a currentDateTime like in subject expression before the momentjs formatStr? That too inclusive of DST for a given US timezone. Ex, I’d imagine you want forma…

---

## [Inner handlebars don't escape in href?](https://forums.losant.com/t/inner-handlebars-dont-escape-in-href/5268)

<div class="topic-metadata">

**Author:** [@emcdee](https://forums.losant.com/u/emcdee)\
**Replies:** 12\
**Last updated:** [September 21, 2023, 4:02pm UTC](https://forums.losant.com/t/inner-handlebars-dont-escape-in-href/5268 "2023-09-21T16:02:26Z")

</div>

After searching don’t see an easy way to do this - {{\> navItem label="Log" href="{{concat '/get-log/' experience.user.userTags.cust}}" }} Means the output is (handlebar char results in %7B) - https://app.com/%7B%7Bco…

---

## [Is there a way to check if an object in a workflow payload is empty (has no child elements)](https://forums.losant.com/t/is-there-a-way-to-check-if-an-object-in-a-workflow-payload-is-empty-has-no-child-elements/4806)

<div class="topic-metadata">

**Author:** [@Wesley\_Manning](https://forums.losant.com/u/Wesley_Manning)\
**Replies:** 2\
**Last updated:** [November 9, 2022, 7:53pm UTC](https://forums.losant.com/t/is-there-a-way-to-check-if-an-object-in-a-workflow-payload-is-empty-has-no-child-elements/4806 "2022-11-09T19:53:59Z")

</div>

Have payload and want to check that {{data.channels}} contains no sub elements. Is there a handlebar to do that? { “data”: { “channels”: { } } I know how to check for null: {{data.channels}} != null. Using in a co…

---

## [Format datetime to linux epoch number](https://forums.losant.com/t/format-datetime-to-linux-epoch-number/4542)

<div class="topic-metadata">

**Author:** [@Paolo\_Proxy](https://forums.losant.com/u/Paolo_Proxy)\
**Replies:** 4\
**Last updated:** [May 20, 2022, 7:26pm UTC](https://forums.losant.com/t/format-datetime-to-linux-epoch-number/4542 "2022-05-20T19:26:16Z")

</div>

Hi there, I am not sure how to approach this problem, I have devices where several attributes are Numbers (they are date times but because there is not that type I figured I will store in linux epoch) representing date …

---

## [Nested Folders Structure for Components](https://forums.losant.com/t/nested-folders-structure-for-components/3293)

<div class="topic-metadata">

**Author:** [@Agustin\_Wolkovicz](https://forums.losant.com/u/Agustin_Wolkovicz)\
**Replies:** 1\
**Last updated:** [September 28, 2020, 9:57pm UTC](https://forums.losant.com/t/nested-folders-structure-for-components/3293 "2020-09-28T21:57:20Z")

</div>

Our use case is as follows: We are building a Web Application on top of Losant Experience Pages Our intention is to structure the Code on a per-component basis, like this: component/someComponent/htmlCode.hbs comp…

---

## [\[Solved\] Condition for Indicator block](https://forums.losant.com/t/solved-condition-for-indicator-block/1504)

<div class="topic-metadata">

**Author:** [@Tron7](https://forums.losant.com/u/Tron7)\
**Replies:** 9\
**Last updated:** [February 6, 2019, 3:51pm UTC](https://forums.losant.com/t/solved-condition-for-indicator-block/1504 "2019-02-06T15:51:45Z")

</div>

I’m trying to set a special condition in a query for an indicator block to display value0. This is the data from my payload" data": { "limit2": 0, "limit1": 1, "limit0": 4, "value2": "11", "value1":…

---

## [\[Solved\] Floor map Point Display](https://forums.losant.com/t/solved-floor-map-point-display/1500)

<div class="topic-metadata">

**Author:** [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Replies:** 1\
**Last updated:** [February 2, 2019, 5:35am UTC](https://forums.losant.com/t/solved-floor-map-point-display/1500 "2019-02-02T05:35:42Z")

</div>

I have defined an Icon template as below. When data.estop is true it shows red correctly. I tried adding another statement for when it is false and null but I can only get it to work if I change “null” to “nul”. Is th…
