If then

if i have a dynamic text box with a var = lives
how can i make it so that if lives < 1 then gotoAndStop(2); ?