From the API on ESOUI wiki:
GetSkillLineXPInfo(SkillType skillType, luaindex skillIndex)
Returns: integer lastRankXp, integer nextRankXP, integer currentXP
my code: (8,6) corresponds to woodworking
xp1, xp2, xp3 = GetSkillLineXPInfo(8,6);
result:
xp1 = nil
xp2 = nil
xp3 = lastRankXP
Pretty sure i'm screwing something up but have no idea.
p.s. Spent 3 hours debugging only to realize I put a space in my "elseif's" (else if vice elseif) = FAIL.