PHP Classes

File: src/eMacros/Runtime/Logical/LogicalNot.php

Recommend this page to a friend!
  Classes of Emmanuel Antico  >  eMacros  >  src/eMacros/Runtime/Logical/LogicalNot.php  >  Download  
File: src/eMacros/Runtime/Logical/LogicalNot.php
Role: Class source
Content type: text/plain
Description: Class source
Class: eMacros
PHP LISP language interpreter
Author: By
Last change:
Date: 8 years ago
Size: 519 bytes


Class file image Download
namespace eMacros\Runtime\Logical;


LogicalNot extends GenericFunction {
     * Applies a logical NOT to a given value
     * Usage: (not (and true true)) (not (or false))
     * Returns: boolean
     * (non-PHPdoc)
     * @see \eMacros\Runtime\GenericFunction::execute()
public function execute(array $arguments) {
        if (empty(
$arguments)) {
            throw new \
BadFunctionCallException("Not: No parameters found.");
        return !

For more information send a message to info at phpclasses dot org.