The following rules apply to a statement if (e) S (§14.9.1):
- V is [un]assigned after
if (e) Siff V is [un]assigned after S and V is [un]assigned afterewhen false. - V is [un]assigned before
eiff V is [un]assigned beforeif (e) S. - V is [un]assigned before S iff V is [un]assigned after
ewhen true.
The following rules apply to a statement if (e) S else T (§14.9.2):
- V is [un]assigned after
if (e) S else Tiff V is [un]assigned after S and V is [un]assigned after T. - V is [un]assigned before
eiff V is [un]assigned beforeif (e) S else T. - V is [un]assigned before S iff V is [un]assigned after
ewhen true. - V is [un]assigned before T iff V is [un]assigned after
ewhen false.