True false switch challenge

Maybe with an if / elif / else statement? In this case, see here:
https://forum.dynamobim.com/t/swap-empty-main-list/9843/5
https://forum.dynamobim.com/t/how-to-write-simple-if-elif-else-conditional-in-python/9632