Change local Image (from assets) dynamically

Hi! I need to change one Image to another (both images are stored in local assets) based on some boolean value, but unable to find how to do it from a custom function or action.

What is the best approach to do this?

3
5 replies