What does the と do here? I thought と meant "and' or "if"

What does the と do here? I thought と meant "and’ or “if”.