GetPrerequisites: join if() clauses

These all test the same variable for different values, so only one of them can
ever be true. This also allows to completely remove one variable that only
flagged if one of the conditions matched.
Merge topic 'GetPrerequisites-expansion' into next

2a263229 GetPrerequisites: join if() clauses