REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: new-line?

new-line?  block

Returns the state of the new-line marker within a block.

Arguments:

block [block!] - Position in block to check marker

See also:

new-line  

Description

Given a block at a specified offset, new-line? will return true if there is a line marker at that position.

b: [1 2 3 4 5 6]
forall b [if new-line? b [print index? b]]

b: [
    1 2
    3 4
    5 6
]
forall b [if new-line? b [print index? b]]
5


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin