Index | PAL Intro | Commands | Registers | Indices | Stack | Macros | Classes | Attributes | Errors
attr/mvtest - Test multi-value attributes
Synopsis
Description
Error Handling
Examples
See Also
Author
attr/mvtest ![object], attribute, value <, value ... >
Behaves as attr/test except only a single attribute can be presented as an argument, and the remaining arguments are values to test against it. Each test value will have its own result saved to the SFLG bit register and SCMP will contain the result of the last value tested.
A runtime error will occur if a register is of the wrong type or if a named attribute or object could not be found.
attr/mvtest P0, [author], [Stephen King], [Charles Dickens] Tests to see if the object pointed to in P0 has an author attribute with the value "Stephen King" or "Charles Dickens". The SCMP register will contain the result of the last test and the lowermost 2 bits of the SFLG register will be set accordingly for each test.
pal_commands(5), pal_registers(5), pal_indices(5), attr_test(5), attr_load(5), class_test(5),
PROSE Assembly Language at prose.sourceforge.net.
Copyright (c) 2002-2008 Mark R. Bannister <cambridge@users.sourceforge.net>.
This is free software and can be downloaded from prose.sourceforge.net; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
PAL 1.0 | attr_mvtest (5) | 1 December 2008 |