Question
How to use a custom user attribute in the same session it was set?
Answer
If you set a custom user attribute during a session it will not be available immediately for targeting purposes. If you want to use the custom user attribute in the same session you have to call the forceContentUpdate method right after you set it.
NOTE: If multiple user attributes are set you have to call the "forceContentUpdate" method right after all the attributes are set. It is not recommended to call "forceContentUpdate" after every attribute.