View Single Post
# 3 15-02-2016 , 08:44 PM
Gen's Avatar
Super Moderator
Join Date: Dec 2006
Location: South FL
Posts: 3,522
The first element in an array is always at position zero.

Code:
string $mySelection[] = `ls -sl`;
string $firstObj = $mySelection[0]
$mySelection[0] is already a string variable, just not as elegant as $firstObj


- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::