Author Topic: Comparing Multiple Values with IF Variable  (Read 1479 times)

0 Members and 1 Guest are viewing this topic.

WasabiIceCream

  • Youngling
  • *
  • Posts: 21
  • Karma: +2/-0
    • View Profile
    • Gameoverse
  • Twitch Name: Gameoverse
Comparing Multiple Values with IF Variable
« on: February 10, 2016, 12:24:00 AM »
I would love an option to ignore case when comparing String values when using the @if@ function.
As of right now, redundancy is required to differentiate a "Yes" from a "yes", when it'd be much faster and easier to ignore the case.

Even better, would be the ability to compare multiple values.
Something like "@if@[@target@||1,Yes,yes||@user@ voted yes.||@user@ voted no.]"

Unless this is already possible. I haven't seen anything in the Wiki about it.
Thanks in advance!



Thanks in advance!

Nazo

  • Padawan
  • **
  • Posts: 70
  • Karma: +2/-0
  • Expert on Twitch Bots
    • View Profile
  • Twitch Name: OverlordNazo
Re: Comparing Multiple Values with IF Variable
« Reply #1 on: February 10, 2016, 04:37:34 AM »
I would love an option to ignore case when comparing String values when using the @if@ function.
As of right now, redundancy is required to differentiate a "Yes" from a "yes", when it'd be much faster and easier to ignore the case.

Even better, would be the ability to compare multiple values.
Something like "@if@[@target@||1,Yes,yes||@user@ voted yes.||@user@ voted no.]"

Unless this is already possible. I haven't seen anything in the Wiki about it.
Thanks in advance!



Thanks in advance!
Same. But it would be even better if we could add a toggle to the @if@ variable to make it case-sensitive and vice versa (it might be a lot to ask, but it will definitely be worth it). As for inputting multiple values into the @if@ variable, there is a way to set that up, but it's slightly complicated.
★ Twitch Bot Expert ★


YouTube: Lord Nazo
Twitch: OverlordNazo
Twitter: @Lord_Nazo