Ah I see…
Well you are currently converting the enum to a string, storing it in a variable and then comparing that variable to a hard-typed string. Why not just store the enum and compare it with an enum? No need for any conversion at all. Just store the enum in an enum variable and check if it’s equal to the enum you want.