#How to check for specific data?

1 messages · Page 1 of 1 (latest)

versed ember
#

I feel like I'm forgetting a very basic command, but how do I check if a data is set to a specific value, like if a storage has a specific data (like a specific number) in a certina path

patent zenithBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1726782114:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

versed stone
#

execute if data storage something {foo:12}

#

@versed ember

versed ember
#

ohh ok I didn't know the synstax was that

#

Thanks Sila!

patent zenithBOT
#
Question Closed

Your question, #1286434615824744630 (How to check for specific data?), was resolved!

Original Message

#1286434615824744630 message

Duration open

17m

versed ember
#

Ok actually I'll reopen this, I tried your syntax and it doesn't seem to work

patent zenithBOT
#

Re-opened the channel. Make sure to close it again once you're done.

versed ember
#

Ok actually

#

It works, but how do you make it with nested variables?

rapid elbow
#

execute if data storage thing a.b{c: 3}

versed ember
#

Oh ok

rapid elbow
#

Or execute if data storage thing {a: {b: {c: 3}}} works as well, I think

#

But the first is easier to read imo

versed ember
#

I mean, why do ywe use {} when we check but not before, does {} indicate that we check for a data?

rapid elbow
#

The syntax for this is actually quite complicated

versed ember
#

Oh I didn't know about this page

#

I will read it, thanks

rapid elbow
#

Feel free to ask specific questions, but that page will give you a good overview

oblique dew
rapid elbow
#

Yes, but it might not all be clearly worded, and some things can be confusing without further examples