I have amended the code above to do what I want:

on 1:INPUT:#,?: {
if (mypassword isin $1-) { halt }
}

Thanks! wink