#<none>

1 messages · Page 1 of 1 (latest)

uncut ridge
#

why set a var and then broadcast? why not add a return

sly garnet
#
  if length of {_i} is between -1 and 4:
    stop
  if length of {_i} is between 3 and 7:
    set {c} to "k"
  if length of {_i} is between 6 and 10:
    set {c} to "m"
  if length of {_i} is between 9 and 13:
    set {c} to "b"
  if length of {_i} is between 12 and 16:
    set {c} to "t"
  return {c}


command /num <integer>:
  trigger:
    getCardinal(arg-1)
    wait 1 second
    message "%{c}%"

    

added return, gonna remove message but then it dosent send anything. still outpouts <none>

uncut ridge
#

No, send “%functionWithReturn()%”

#

Wherever you call the function will be replaced with the return

#

Like this ```function example(n: number, v: number) :: number:
return {_n} * {_v}

on death:
if example(10, 5) = 50:
send “%example(4, 3)%” to victim```

sly garnet
#

i tried that, it still returns none

uncut ridge
#

what