## And Operator## M[UMPS] by Example |

Introduced in the 1977 ANSI M[UMPS] language standard.

Reference | Value | |
---|---|---|

0&0 |
0 (false) | |

0&1 |
0 (false) | |

1&0 |
0 (false) | |

1&1 |
1 (true) |

Reference | Value | |
---|---|---|

"5 apples"&"3 pears" |
1 (true) | |

1&"3 pears" |
1 (true) | |

"5 apples"&"trees" |
0 (false) | |

"0.125"&1 |
1 (true) | |

"5 apples"&0 |
0 (false) | |

"apples"&0 |
0 (false) |

Careful with:

Reference | Value | |
---|---|---|

A>3&B<6 |
1 (always true) |

(`A>3&B` is `0` or `1`, both
`0` and `1` are `<6`)

The value of `(A>3)&(B<6)` depends on the values
of `A` and `B`

Copyright © Standard Documents; 1977-2017 MUMPS Development Committee;

Copyright © Examples: 1995-2017 Ed de Moel;

Copyright © Annotations: 2003-2017 Jacquard Systems Research.

*The information in this page is
NOT authoritative and subject to be modified
at any moment.Please consult the
appropriate (draft) language standard for an
authoritative definition.*

*Some specifications are "approved
for inclusion in a future standard". Note
that the MUMPS Development Committee cannot
guarantee that such future standards will
indeed be published.*

This page most recently updated on 12-Sep-2014, 13:13:34 .

For comments, contact Ed de Moel (demoel@jacquardsystems.com)