Help with Magnitude

hello. i have a script that gets the distance between the players light source and to a block, i make it do a function if its in range which works, but how would i know if there not in range?

			if distance < radius and Find then -- Is in distance, Tool is equipped

i cant do if not distance… so how would i know if player not in distance?

Just add an else statemennt

if distance < radius then
    if Find then
    
    end
else
   print("Player is too far away")
end

when i was far from the block it printed to far away, but when i got close to the block is started printing both player is to far away and player is in distance with tool, which i made print under If Find Then

Im guessing you have this inside of a loop, try breaking the loop once you know the player is in distance of the block