generic: learn something new, conditional assignments

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>