# File lib/PageTemplate/commands.rb, line 358
    def to_s
      str = '['
      if @called_as == 'if'
        str = ' If'
        label = ' If'
        str += @trueCommands.map { |val,commands|
          s = "#{label} (#{val}) #{commands}"
          label = ' Elsif'
        }.join('')
        if @falseCommands.length > 0
          str << " else: #{@falseCommands}"
        end
      else
        str = "[ Unless (#{@value}): #{@falseCommands}"
        if @trueCommands.length > 0
          str << " else: #{@trueCommands}"
        end
      end
      str << ' ]'
      str
    end