Iff Class ========= .. php:class:: Iff Represents an `alt` or `opt` block of conditional statements If an ``Iff`` section contains :php:class:`Elsee` clauses it is rendered as an ``alt`` (alternative) group, otherwise it is rendered as an ``opt`` (optional) group .. php:method:: __construct(string $condition) Create a new Iff conditional group of statements :param string $condition: The condition :returns: A new instance of ``Iff`` :rtype: Iff .. php:method:: addElse(Elsee ...$else) Add Elsee group(s) :param Elsee ...$else: The else group(s) :returns: A new instance of ``Iff`` with the Elsee group(s) added :rtype: Iff .. php:method:: addItem(ItemInterface ...$interface) Add item(s) :param ItemInterface ...$interface: The item(s) :returns: A new instance of ``Andd`` with the item(s) added :rtype: Andd .. php:method:: withComment(string $comment) Sets a comment for the Iff :param string $comment: The comment :returns: A new instance of ``Iff`` with the comment :rtype: Iff .. php:method:: withElse(Elsee ...$else) Set Elsee group(s) :param Elsee ...$else: The else group(s) :returns: A new instance of ``Iff`` with the Elsee group(s) :rtype: Iff .. php:method:: withItem(ItemInterface ...$interface) Set item(s) :param ItemInterface ...$interface: The item(s) :returns: A new instance of ``Andd`` with the item(s) :rtype: Andd