Apply Case Conversion on a String in Scripting

Modified on Fri, 5 Jan at 10:30 AM

Based on the LabOperator Schema with scripting format in YAML and supported script types, here is an example of how to apply case conversion on strings:


---
schema_version: '1.0.1'
info:
  version: '0.0.1'
  uuid: c9c6ef76-5983-443a-a020-bc366a142f11
  title: Case Conversion on a String


fields:
  testScriptField:
    type: script
    script: |
      UPCASE('testing')
    result:
      type: string
    hidden: true


steps:
  stepOne:
    info:
      title: Test
   
    substeps:
      - primary: Test
        expandDescription: true
        description: |
          This is a test YAML file: testing -> TESTING


          {{testScriptField}}
     
flow:
  - stepOne


When it is uploaded to LabOperator, the Workflow Run works successfully. The ‘testScriptField’ holds the result value of the case conversion operation: UPCASE(‘testing’)



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article