# Translate a macro from Tikz to ps [closed]

I have defined a macro in `tikzpicture` which contains:

``````\ifthenelse{\equal{#4}{#5}}%
{\node [color=red, left=0mm of tmp.west]{#4};}
{\node [color=red, left=0mm of tmp.south west, anchor=south east]{#5};
\node [color=red, left=0mm of tmp.north west, anchor=north east]{#4};}
``````

Now I would like to redefine this macro in `pst-node` or `pstricks`. There are several things I don't know how to translate:

• \ifthenelse
• \equal

Could anyone help?

-
The macros `\ifthenelse` and `\equal` aren’t TikZ’. With the right package (`xifthen`?) loaded, you can keep them. – Qrrbrbirlbel Mar 5 at 15:55
`xifthen` does work, thank you – SoftTimur Mar 5 at 16:13

## closed as too localized by percusse, diabonas, Kurt, zeroth, ThorstenMar 17 at 17:04

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.