I had actually tried ... your example before even I came to the forums
[[+gender:isequalto=`1`:then=`Male`:else=`[[+gender:isequalto=`2`:then=`Female`]]` ]]
and it did just then what it has done now ... returned this ...
And whether I choose female or male in the backend ... that’s what it gives me ...
Well your code [[+modx.user.id:userinfo=`dob`]] gave me a zero but I added the ’!’ then it worked perfectly.
Even with the output modifier.