TABLE OF CONTENTS


::pwtk::nebi::image_in_range_

SOURCE

proc ::pwtk::nebi::image_in_range_ {index nimages} {
    # check that index is in [1,nimages] range (allow symbolic indexes)
    set index [uplevel 1 [list ::pwtk::parseIndex1 $index $nimages]]
    if { $index < 1 || $index > $nimages } {
        uplevel 1 [list ::pwtk::error "image index $index is out of range, should be within \[1, $nimages\]" 1]
    }
    return $index
}