REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 6-Feb-2009 Edit History  

REBOL 3 Errors: no-return

A function expecting a block to return a value did not return anything. For instance, when using the while or until function.

Message:

Block did not return a value

Examples:

filter-error try [ ; first block returns nothing
    while [print 10][probe "ten"]
]
10
** Script Error: Block did not return a value
** Where: while [print 10] [probe "ten"]
filter-error try [
    until [print 10] ; block returns nothing
]
10
** Script Error: Block did not return a value
** Where: until [print 10]


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