Variable like GUSER to determine the current endpoint/folder

SOLVED

I am looking to see if there is a variable in X3 that contains the current folder/endpoint code (i.e. PILOT) the user is logged into (similar to the GUSER variable giving the user code). This variable would be something that I could use in code (i.e. if the endpoint = "PILOT", then ...)

I have tried the GDOSSIER variable in the X3 calculator, but it returns a null value.