Search Unity

Best way to catch out of range errors on bolt lists?

Discussion in 'Visual Scripting' started by ForrestRiver, Jun 5, 2021.

  1. ForrestRiver

    ForrestRiver

    Joined:
    Feb 6, 2019
    Posts:
    5
    What is the best way using bolt to check and / or catch out of range on lists?
     
  2. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    2,079
    You typically use list.count to determine the max possible int value to iterate upon.
     
    ForrestRiver likes this.