Thread:Extension talk:UserFunctions/ ifanon:then else/reply (3)

In your sidebar only version one should work. I have just tried it on a 1.23.2 test wiki using UF 2.5 and found this working perfectly. One possible cause: You are using the sidebar cache. Make sure that the parameter  is set to "false".