Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Automate replace command for range of value

    Hi,
    I am trying to automate the "replace" command for a range of values, for example if codkm values are from 1 to 62 and if values are 70, 74, 77

    g codkmgr=0
    replace codkmgr=1 if codkm .....

  • #2
    Code:
    replace codkmgr = 1 if inrange(codkmgr, 1, 62) | inlist(codkmgr, 70, 74, 77)

    Comment


    • #3
      thank you

      Comment

      Working...
      X