Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Issue splitting value from CSV with split command

Explorer ,
May 23, 2025 May 23, 2025

Hey,


I have a csv dataValue "1920x1080" that I want to convert to separate to two integers, one for width and one for height. My thinking is to first split it up with a split command and then convert it to an integer with parseInt.

However, I get "TypeError: Cannot read properties of null (reading 'split')" for the split command.
I am pretty sure the res value of the specified csv field is "1920x1080", and replacing the first line in the code below with "res = "1920x1080" works perfectly.

With the dataValue([13,1]) being "1920x1080", why does this not return "1920" without an error?

res = footage("list.csv").dataValue([13,1]);
res.split("x")[0]

 Thanks!
Mikael

TOPICS
Expressions
108
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 23, 2025 May 23, 2025
LATEST

What does your csv file look like?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines