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

Extendscript, is there an "includes()" function? I could not find it

Engaged ,
Nov 01, 2023 Nov 01, 2023

Copy link to clipboard

Copied

I tried this:


var a = "Test,_,t"
var b = a.includes("7");

So I got this error:

 

a.includes is not a function

 

So is there any other way to verify the if a string is inside another string please?

TOPICS
SDK

Views

309
Translate

Report

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

correct answers 1 Correct answer

Adobe Employee , Nov 01, 2023 Nov 01, 2023

Here's PProPanel using ExtendScript to find an occurrence of a string, within a string:


https://github.com/Adobe-CEP/Samples/blob/e60d6a22ef44d8eb4cca3904c35a0c050576b697/PProPanel/jsx/PPRO/Premiere.jsx#L264

Votes

Translate
Adobe Employee ,
Nov 01, 2023 Nov 01, 2023

Copy link to clipboard

Copied

LATEST

Here's PProPanel using ExtendScript to find an occurrence of a string, within a string:


https://github.com/Adobe-CEP/Samples/blob/e60d6a22ef44d8eb4cca3904c35a0c050576b697/PProPanel/jsx/PPR...

Votes

Translate

Report

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