#Help me! Trying to figure out something about arg's

1 messages · Page 1 of 1 (latest)

craggy hatch
#

Basically, I'm trying to figure out how to make it so if arg-1 is set dont do arg-2 but do arg-3 but if arg-2 is set dont do arg-1 but do arg-1, i'm not sure how to explain it but i hope somebody understands what im trying to say!

sly lotus
#

Get all arguments as text type
Apply that logic with conditions
Parse arguments to type of your need

gaunt forge
tribal badge
pearl kite
#

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.

craggy hatch
#

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

craggy hatch
gaunt forge
#

the withdraw and the deposit should be the same argument

#
  #do stuff
else if arg-1 = "deposit":
  #do other stuff```
sly lotus
craggy hatch
#

if i wanted to make it into a command how would i make it ? command /beacons [<withdraw deposit>] [<amount>]

gaunt forge
craggy hatch
#

ok ok cool, thanks man for all the help

gaunt forge
#

sure thing

tribal badge
#

It´s called return to sender

#

dont ping me pls ±'