Ulabael

scrFindInArray

Jun 12th, 2022 (edited)
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. function scrFindInArray(array, value)
  2. {
  3. if is_array(array)
  4. {
  5. for (var i = 0; i < array_length(array); i++)
  6. {
  7. if array[i] == value
  8. {
  9. return i
  10. }
  11. }
  12. return noone
  13. }
  14. else
  15. {
  16. return noone
  17. }
  18. }
Add Comment
Please, Sign In to add comment