Obviously one can't know for certain what another is thinking. However, at this point in history only one country has ever actually used nuclear weapons in any fashion whatsoever beyond providing a powerful threat, so the odds are that they'd be used defensively. The concept of mutually assured destruction doesn't just apply to the US and USSR. Are the Iranians really so stupid and self destructive to believe that if they nuked Israel that we wouldn't retaliate?