Meta Project

The Unofficial Meta Documentation

IS-LAST

Summary

IS-LAST signals the position of the STRING! type value is at the last position

Category

Categoryname

Usage

IS-LAST value

Arguments

value - STRING! type value

Refinements

This method has no refinements

Description

IS-LAST signals the position of the STRING! type value is at the last position

Example Code

this: "this"
start: 1
if is-last this [write start write/line " is last"]
increment start
advance this
if is-last this [write start write/line " is last"]
increment start
advance this
if is-last this [write start write/line " is last"]
increment start
advance this
if is-last this [write start write/line " is last"]

Result

4 is last

Related

IS-TAIL  

Back to the Meta Methods Reference index