# Sets and ifs

**URL:** <https://forum.choiceofgames.com/t/sets-and-ifs/177305>\
**Category:** ChoiceScript Help\
**Created:** [May 11, 2026, 1:18pm UTC](https://forum.choiceofgames.com/t/sets-and-ifs/177305 "2026-05-11T13:18:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![MeowMeow422](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meowmeow422/32/207799_2.png) [@MeowMeow422](https://forum.choiceofgames.com/u/MeowMeow422)\
**Post date:** [May 11, 2026, 1:18pm UTC](https://forum.choiceofgames.com/t/sets-and-ifs/177305/1 "2026-05-11T13:18:39Z")

</div>

Okay so I know how the \*if variables work when true or false or the ones with percentage. But my question is the variable with names.

Examples

```choicescript
*fake_choice 
    #1
        *set meow "one"
    
    #2
        *set meow "two"
    
    #3
        *set meow "three"
    
    #4
        *set meow "four"
        
Blep blpe

Belap

*page_break 

Blep blep

*if meow "one"
    Meow
    
*if meow "two"
    Meow Meow
    
*if meow "three" or "four"
    Damn

```

Are these correct or do i need to put brackets? If the latter, in what format/ how?

Also yes, the meow variable has already been created

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [May 11, 2026, 1:23pm UTC](https://forum.choiceofgames.com/t/sets-and-ifs/177305/2 "2026-05-11T13:23:10Z")

</div>

iirc for strings like this it’d be

```choicescript
*if (meow = "one")

```

Don’t cite me on it though

cause there’s also

```choicescript
*if (("$!!{meow}" = "ONE")

```

---

<div class="post-metadata">

**Author:** ![MeowMeow422](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meowmeow422/32/207799_2.png) [@MeowMeow422](https://forum.choiceofgames.com/u/MeowMeow422)\
**Post date:** [May 11, 2026, 1:27pm UTC](https://forum.choiceofgames.com/t/sets-and-ifs/177305/3 "2026-05-11T13:27:32Z")

</div>

Oooh, i see i see  
I’ll try that out and get back to ya

---

<div class="post-metadata">

**Author:** ![MeowMeow422](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meowmeow422/32/207799_2.png) [@MeowMeow422](https://forum.choiceofgames.com/u/MeowMeow422)\
**Post date:** [May 11, 2026, 1:29pm UTC](https://forum.choiceofgames.com/t/sets-and-ifs/177305/4 "2026-05-11T13:29:12Z")

</div>

Oh wait what about the and/ or thing? It’s like this right:

```choicescript
*if (meow = "one") or (meow = "two")

```

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [May 11, 2026, 1:34pm UTC](https://forum.choiceofgames.com/t/sets-and-ifs/177305/5 "2026-05-11T13:34:55Z")

</div>

```choicescript
*if ((meow = "one") or (meow = "two"))

```

it’s usually in pairs, like

```choicescript
*if (((meow = "one") or (meow = "two")) or (meow = "three"))

```

first ‘few’ parenthesis, ( ← these fellas, count how many variants are in a set. so

```choicescript
*if (((meow = "one") or (meow = "two")) or (meow = "three")) and ((woof = "four") or (bawk = "four"))

```

would give the text below of it’s either meow 1-3 AND woof or bawk are four.

And when you use number likes here, you can also use multireplace by making ‘meow’ a numeral variable

so instead of

```choicescript
*if (meow =1)

```

you can have

```choicescript
@{meow meow|meow meow|Damn|Damn}

```

---

<div class="post-metadata">

**Author:** ![MeowMeow422](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meowmeow422/32/207799_2.png) [@MeowMeow422](https://forum.choiceofgames.com/u/MeowMeow422)\
**Post date:** [May 11, 2026, 1:46pm UTC](https://forum.choiceofgames.com/t/sets-and-ifs/177305/6 "2026-05-11T13:46:26Z")

</div>

Ahhh, i see.

Thanks for taking the time to reply and even giving examples! Much appreciated

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [May 11, 2026, 2:52pm UTC](https://forum.choiceofgames.com/t/sets-and-ifs/177305/7 "2026-05-11T14:52:13Z")

</div>

glad to be of help :3

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/choiceofgames/original/3X/e/f/efe1497a762edecdb6d569a1c4abee87508bf002.png) [@system](https://forum.choiceofgames.com/u/system)\
**Post date:** [May 12, 2026, 2:53pm UTC](https://forum.choiceofgames.com/t/sets-and-ifs/177305/8 "2026-05-12T14:53:14Z")

</div>

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.
