Author Topic: Why isn't my @if@ command working?  (Read 1109 times)

0 Members and 1 Guest are viewing this topic.

ByronBojangles

  • Youngling
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Why isn't my @if@ command working?
« on: February 11, 2017, 11:55:04 AM »
!addcmd !tickets @if@[>||@calc@[/|@points@|20]||300||Remember this is up to a maximum of 15 tickets!||You must have at least 20 points to buy a ticket]
The goal of this command is to return the first message if they have over 300 of the stream currency, and the second is supposed to be if they have less than 300. Can anyone help?

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Why isn't my @if@ command working?
« Reply #1 on: February 12, 2017, 12:51:54 AM »
o.o? Would be easier to do this: @if@[>||@points@||20||You must have at least 20 points to buy a ticket||Remember this is up to a maximum of 15 tickets!]
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

ByronBojangles

  • Youngling
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Why isn't my @if@ command working?
« Reply #2 on: February 12, 2017, 01:40:05 AM »
Thank you! I'll test that out when I can.

I'd prefer mine to work though so the second message only shows up if they have over 300 points, but if that's too complicated then I'll definitely do it your way.

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Why isn't my @if@ command working?
« Reply #3 on: February 12, 2017, 02:15:30 AM »
The problem is that with your @if@, they need 6000 points in order for the first phrase to be said, since @calc@[/|@points@|20] > 300. So their points divided by 20 has to be 300 or more.
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport