#Help me! Trying to figure out something about arg's
1 messages · Page 1 of 1 (latest)
Get all arguments as text type
Apply that logic with conditions
Parse arguments to type of your need
I had a stroke while reading this
I had 2, because i read it twice to confirm. Still dont understand it tho 😦
You don't understand it because the OP gave no context and on top of that, the second case is contradicting itself.
"if arg-2 is set don't do arg-1 but do arg-1". Yup.
ok let me rephrase it for you guys, if i have a command /beacons with [<withdraw>] [<deposit>] [<amount>] if i say deposit then withdraw doesn't matter in the command so i would just say /beacons [<deposit>] [<amount>] and if i say /beacons [<withdraw>] [<amount>] the deposit doesn't count
.
.
.
.
the withdraw and the deposit should be the same argument
#do stuff
else if arg-1 = "deposit":
#do other stuff```
why ping me bruh
ok cool
if i wanted to make it into a command how would i make it ? command /beacons [<withdraw deposit>] [<amount>]
/beacons <[text>] [<number>] then use conditions like these
ok ok cool, thanks man for all the help
sure thing