ml_assert_posinteger

Checks if a given value is a positive integer.

Contents

Syntax

ml_assert_posinteger(value)
ml_assert_posinteger(value, name)

Description

This function checks if a given value is a real, positive integer value, larger or equal to 1 and throws an error if not.

Input

Output

---

See Also

ml_assert_integer | ml_assert_posscalar