playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
How to get the last Array object? [SOLVED]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: How to get the last Array object? [SOLVED] (Read 922 times)
Silicon Power
Full Member
Posts: 186
How to get the last Array object? [SOLVED]
«
on:
December 14, 2019, 04:31:06 PM »
Hi. I want to get the last object of an array! is there any action or a good way to do this? Thanks.
«
Last Edit: December 16, 2019, 02:23:33 AM by jeanfabre
»
Logged
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: How to get the last Array object?
«
Reply #1 on:
December 16, 2019, 02:23:24 AM »
Hi,
Youc an do this by getting the length of the array, substract 1 ( since array indexing is zero based) and then use ArrayGet action.
But I just made a custom action ArrayGetLastItem, you can get it on the ecosystem
Bye,
Jean
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
How to get the last Array object? [SOLVED]