Should be possible. Are you using an uploaded image, URL or colour?
Depends on how you're handling it but you could store values in an object and then make changes based on the status of the variable e.g. true or false, etc., then depending on the condition, get the specific path (key/value) from your object.