Skip to content

how to compare string values of two fileds and also compare value within array #1214

Closed
@sarincm

Description

@sarincm

Hi
I searched for the solution for many hrs..but cant find any..
i have my json data below

{
  Name: test,
  type: 'product',
  category: 'product',
breadcrumbs: [ 'abcd', 'xyz', 'asd', 'test' ]
}

i want to validate 2 condition

  1. the value of type and category must be same
  2. the last value of breadcrumbs array and the Name field must be same

Is there any way i can validate these two conditions..
please help me

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions