FLOE-116: Updated conditionAny transform

Added a detailed comment describing its usage. Also fixed an issues with the for loop.