Skip to Main Content
Status Not in Plan
Categories Natural (NAT)
Created by Hezi Shirazi
Created on Nov 23, 2023

Examine command new options

Add new features for Examine command:

Let assume I have a string dynamic array:

#str (a/1:6) dynamic const <"10","1","31","20","2","21">

I want to search for the string "1" in that array, so I want to get index 2 that it is exactly the same

But in Natural Examine I will get Index 1 or if backwards I will get 6

So I want to propose 2 new features:

  1. Add in Examine support for REGEX

  2. Add in Examine with length is equal and value equal

  3. Add Examine on numbers/bool type also

  • Hezi Shirazi
    Dec 24, 2023

    It wont work when the actual value isnt in array, such as: "10","4","31","20","2","21"

    I will get invalid index : 1

    2 replies
  • Admin
    Eli Cohen
    Dec 20, 2023

    Hello Hezi and thank you for posting this request.

    1. REGEX - we are considering it under this Aha Idea - you may want to vote or leave comment.

    2. Examine full length and value could be achieved with this sample:


    1 #A(A/1:10) DYNAMIC INIT <"11","1","2">

    1 #I(I4)


    EXAMINE #A(*) FOR FULL "1"



    WRITE #I


    3. EXAMINE is for string values, therefor we will not implement support of Numeric values. It could be solved with FOR loop.