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?
\ifthenelseand\equalaren’t TikZ’. With the right package (xifthen?) loaded, you can keep them. – Qrrbrbirlbel Mar 5 at 15:55xifthendoes work, thank you – SoftTimur Mar 5 at 16:13