Suppose I have a loop:
\begin{tikzpicture}
\foreach \frm \in {1,...,6}{ \only<\frm>{
% if \frm > 4: set \x to 1, 0 otherwise
\node (foo) at (10+5*\x,7) {hello};
}}
\end{tikzpicture}
I want to "move" the node at a given slide, but I'm struggling to find a suitable way to express the conditional in the comment in TeX.
Edit: I tried \ifthenelse to no avail:
\node (foo) at (10+5*\ifthenelse{\frm<5}{0}{1},7) {hello};
Gives me this error, which I cannot parse at all
! Use of \beamer@only doesn't match its definition.
\new@ifnextchar ...served@d = #1\def \reserved@a {
#2}\def \reserved@b {#3}\f...
