Toggle switch: how to show different toast when toggle on/off

I’ve created toggle switch (not animated) as instructed in https://www.axure.com/support/training/mobile-toggle-switch-tutorial.
Now I’d like to show toast 1 when user toggles on, and toast 2 when user toggles off.
I tried to use OnPanelStateChange event but I don’t know how to set different toast for on & off. This is where I’m now:
Näyttökuva 2018-11-22 kello 12.39.02

Any advice?

arent you missing the conditions?
if slider is true show this panel,

and another case for if slider is false, where you show the other panel

?

Indeed - condition was missing.
Got it working now, thanks.