pageIndex
  • 25 Sep 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

pageIndex

  • Dark
    Light
  • PDF

Article Summary

Description

Type: Number

Returns the index of the active page in your app's layout.


Examples

// display the current page index in the debugger
debug.log(app.pageIndex);

Remarks

Page indexes are zero-based. This means the first page will have an index value of 0 and the third page will have an index value of 2.

Zero-Based Indexing

Zero-based indexing seems strange at first, but its how programming languages (i.e. Javascript) work with collections of things.


What's Next