Notifications
Clear all

[Closed] if/then problem

when I selected some objects and I didn`t select result is always same.
How can I solve this problem?

aa = $ as array
if aa == #() then
(
messagebox “hello!!”
)
else
(
messagebox “bye!!”
)

1 Reply

Use selection instead of $. selection.count will == 0 when nothing is selected.