Variable and IF blocks not working

I have a basic GSE using the variable and a IF Block, but it doesnt work. The variable when tested returns TRUE or FALSE so the function in the variable works but when I complete the IF block using the variable it does nothing. any advice?

{
    ["Variables"] = {
        ["Test"] = {
            [1] = "function()",
            [2] = " if AuraUtil.FindAuraByName("Power Word: Fortitude", "player") then",
            [3] = " return true",
            [4] = " else",
            [5] = " return false",
            [6] = " end",
            [7] = "end"
        }
    },
    ["Actions"] = {
        [1] = {
            [1] = {
                [1] = {
                    [1] = "/say Variable returned True",
                    ["Type"] = "Action"
                }
            },
            [2] = {
                [1] = {
                    [1] = "/say Variable returned False",
                    ["Type"] = "Action"
                }
            },
            ["Variable"] = "Test",
            ["Type"] = "If"
        }
    },
    ["InbuiltVariables"] = {
        
    }
}