Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
type/verify - check for the Boolean of verification results
Calling Sequence
type(a, verify(bool))
Parameters
a
-
any expression
bool
either 'true', 'false', or 'FAIL'
Description
Forcing a result from verify to return a Boolean value is too restrictive, so a more general class of objects may be returned, with the Boolean value of these being checked by the above types.
A result from a call to verify is considered to be true if the result is true. A result from a call to verify is considered to be either false or FAIL if either of those values is returned, or if a list containing either false or FAIL as a first operand is returned, respectively.
The special verification boolean will convert all return values which are lists to return the first operand of the list. This can be used if a boolean value is expected by some procedure.
The special verification truefalse will convert all return values which are lists to return the false. This can be used if a truefalse value is expected by some procedure.
Examples
See Also
type, type/verification, verify, verify/structured
Download Help Document