8 Replies Latest reply on Jun 18, 2013 10:25 AM by areohbee

    _VERSION - what happened to it?

    areohbee Level 5

      Seems not to work - am I doing something wrong?

      plugin_diag_no__VERSION.gif

       

      Line 5: in Info.lua:

       

      local ver = _VERSION.major

       

      UPDATE:

      ~~~~~~~

      Figured it out, sorta -  _VERSION is a strange animal, for example:

       

      local ver = _VERSION.major -- throws error.

      local ver = _VERSION and _VERSION.major -- sets ver to nil.

      local ver = _VERSION and _VERSION.major or 2 -- sets ver to 5 in Lr5...

       

      Strange indeed, IMO.

      ~~~~~~~

       

      Message was UPDATED by: Rob Cole