In order to achieve this you can use another property in the "Value" field that will be set based conditionally through a "Set installer property" custom action.
Another workaround is to duplicate the element that contains that attribute, but set different values for the attribute in each element, then use your property as a conditions for the installation of the two elements in the "Element Settings" tab.