フラグであれば
furagudeareba

Noun
Da Copula

The "-eba" conditional form ("if/when…") of フラグ

1. If flags exist; If there were flags

Ba Conditional
Computing