I create two different table contents and want to switch with a newif. \AAAfalse
has no effect. What do I have to do?
\documentclass[a4paper, landscape]{article}
\usepackage{pgfplotstable}
\pgfplotsset{compat=newest}
\pgfplotstableset{string type, col sep=comma, header=false}
\newif\ifAAA
\AAAtrue
\ifAAA%================================
\pgfplotstableread[header=false]{
A, A
A, A
A, A
}\mytable
\def\mycolor{red}
\else%==================================
\pgfplotstableread[header=false]{
B, B
B, B
B, B
}\mytable
\def\mycolor{blue}
\fi%=====================================
\begin{document}
\section{\color{\mycolor} AAA true :)}
\pgfplotstabletypeset[]{\mytable}
\AAAfalse
\section{\color{\mycolor} AAA false :(}
\pgfplotstabletypeset[]{\mytable}
\end{document}
\AAAfalse
so naturally it has no effect.