# Text&Variables... Help?

**URL:** <https://forum.kirupa.com/t/text-variables-help/151499>\
**Category:** programming\
**Created:** [June 15, 2005, 9:14pm UTC](https://forum.kirupa.com/t/text-variables-help/151499 "2005-06-15T21:14:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Insane\_Knux](https://avatars.discourse-cdn.com/v4/letter/i/439d5e/32.png) [@Insane\_Knux](https://forum.kirupa.com/u/Insane_Knux)\
**Post date:** [June 15, 2005, 9:14pm UTC](https://forum.kirupa.com/t/text-variables-help/151499/1 "2005-06-15T21:14:58Z")

</div>

Ok, Im making this simple thing that asks you questions, and you put a Y for Yes, and a N for No. So how would I write this?

```auto
if(cmd == "Y"){
    log = "Next question..."
}

```

like that?
