You mean crazy shit like this?
```
{"type": "eval", "expr": "new Date().getMinutes()", "as": "minute", "display": false},
{"type": "data", "bind": "$.minute", "label": "Current minute: "},
{"type": "hr"},
{
"type": "if",
"condition": "$.minute % 2 == 1",
"then": [
{"type": "text", "value": "Minute is ODD - querying notes..."},
{"type": "query", "filter": {"kinds": [1], "limit": 3}, "as": "notes", "children": [
{"type": "foreach", "items": "$.notes", "as": "note", "template": {
"type": "container", "children": [
{"type": "text", "bind": "$.note.content"}
]
}}
]}
],
"else": [
{"type": "text", "value": "Minute is EVEN - showing different content"},
{"type": "text", "value": "Refresh on an odd minute to see notes!"}
]
}
```
nostr:nevent1qvzqqqqqqypzqnyqqft6tz9g9pyaqjvp0s4a4tvcfvj6gkke7mddvmj86w68uwe0qyt8wumn8ghj7mn0wd68yetvd96x2uewdaexwtcqyr603zu9rmj0f5g20mzjkh0d6r5m0r2lwztvykpm0un8c6hlssamvs630vx
Login to reply