Index | PAL Intro | Commands | Registers | Indices | Stack | Macros | Classes | Attributes | Errors


Manual Reference Pages  - attr_mvtest (5)

NAME

attr/mvtest - Test multi-value attributes

CONTENTS

Synopsis
Description
Error Handling
Examples
See Also
Author

SYNOPSIS

attr/mvtest ![object], attribute, value <, value ... >

DESCRIPTION

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.

ERROR HANDLING

A runtime error will occur if a register is of the wrong type or if a named attribute or object could not be found.

EXAMPLES

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.

SEE ALSO

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.

AUTHOR

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
Generated by manServer 1.07 from man5/attr_mvtest.5 using man macros.