Alright, what does the tilde do

When set on a parameter, what does it mean? I’ve looked …

It’s a labeled parameter, here’s the doc about it

thank you. It’s weird, I looked extensively and couldn’t find it. Searching the rescript site for ~ or tilde doesn’t turn up that doc.

I’m having the same experience with |, which I know lets you do a switch-like operation, but I can’t get back to the docs that explain it, because I don’t know what it’s called.

1 Like

@fham we should add labeled args to the Syntax lookup so it’s easier to find.

3 Likes

Damn, how could we miss this one?
Yes, wil do.

3 Likes

Docs about switch are here or were you talking about something else?

2 Likes

| I would call or pattern

2 Likes

I didn’t know about the syntax lookup … very helpful! #newbie

3 Likes

Chatbots can be useful - here’s an example using the rescript custom gpt.
Even if it hallucinates you can use it to direct you to official docs.