Active screen test

using v8.1
Is there a simple method to test for the current screen displayed?

main = lv.obj()
modal = lv.obj()

You can use lv_scr_act(). Try:

if (lv_scr_act() == main) {
    ...
} else if (lv_scr_act() == modal) {
    ...
}

Perfect. That Did It !
Thank You