turn if into elsif for synch condition
Merge pull request #14 from msolomonTMG/bug_fix_for_if_vs_elsif

turn if into elsif for synch condition