Logical Path lua

ok im kinda getting stuck here in the last few lines of code i dont know how to use the “if a secret is not true”

-- Get two secret true/false values from the wizard.
hero:moveXY(14, 24)
local secretA = hero:findNearestFriend():getSecretA()
local secretB = hero:findNearestFriend():getSecretB()

-- If BOTH secretA and secretB are true, take the high path; otherwise, take the low path.
-- Check the guide for notes on how to write logical expressions.
local secretC = secretA and secretB
if secretC then
    hero:moveXY(20, 33)
    hero:moveXY(20, 15)
hero:moveXY(26, 24)

-- If EITHER secretA or secretB is true, take the high path.
if secretA or secretB then
    hero:moveXY(32, 33)
    hero:moveXY(32, 15)

-- If secretB is NOT true, take the high path.
if secretB then
    hero:moveXY(44, 33)
    hero:moveXY(44, 15)

nevermind i solved it!

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.