Author Topic: Null checks in @if@ statements  (Read 915 times)

0 Members and 1 Guest are viewing this topic.

Ph1Lt0r

  • Youngling
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
  • Twitch Name: Ph1Lt0r
Null checks in @if@ statements
« on: December 04, 2016, 04:45:30 AM »
Is there a way in an if statement to give a response if a file is empty? If so, how do I specify a null?

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Null checks in @if@ statements
« Reply #1 on: December 04, 2016, 06:26:59 AM »
Would be @if@[@readfile@[PathToFile\text.txt]||||There is nothing in this file.||There is something in this file.]
Old Name: RepentGamingTV
Twitch: Here

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