How to check I am in a mission/landing challenge etc

Hi All I have added aircraft persistence via the DataStore in a JS gauge. This
is working well. I’d like to be able to differentiate the different flight
types so that when you’re completing a landing challenge etc. I could disable
the state saving. Is there any way to determine whether the flight is a
challenge / mission etc?