Author Topic: @if@ checking @userinfo1@  (Read 1117 times)

0 Members and 1 Guest are viewing this topic.

MightyWrath

  • Youngling
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
  • Twitch Name: MightyWrath
@if@ checking @userinfo1@
« on: December 08, 2016, 06:52:29 AM »
Hey there, thanks for an awesome bot!

I'm a bit stumped about something though.

I'm trying to setup a command that checks if a user as any info in their @userinfo1@. If it has nothing there then show some text... but if there's something there then show the contents of @userinfo1@.

So, can we check if @userinfo1@ is null or not, and if so how do we do that ?  :D

Cheers.

MightyWrath

  • Youngling
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
  • Twitch Name: MightyWrath
Re: @if@ checking @userinfo1@
« Reply #1 on: December 08, 2016, 07:04:31 AM »
In case anyone else has this question, I was provided an answer, which works, below:

@if@[@userinfo1@[@user@]||||There is no info for @user@.||There is info for @user@. Display info: @userinfo1@[@user@]]


Many thanks repentgamingtv


TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: @if@ checking @userinfo1@
« Reply #2 on: December 08, 2016, 07:16:45 AM »
No problem, was out running errands. So didn't get to your question in time. ;)
Old Name: RepentGamingTV
Twitch: Here

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