Suggestion Issue: isInBetween block


Pages: 1

mdotedot

  • Level 5 Stencyler
May 11, 2019, 12:41:58 am
Would be nice if this block is in the engine rather than in my own extension:
Code: [Select]
<block tag="InBetween" spec="is %0 in between %1 and %2 ?" code="Extension.isInBetween(~,~,~)" type="normal" color="green" returns="boolean">
<fields>
<number order="0"/>
<number order="1"/>
<number order="2"/>
</fields>
</block>
   
   
   
Extension Code:
Code: [Select]
public static function isInBetween(investigate:Float, start:Float, end:Float):Bool{
     return investigate > start && investigate < end;
} // isInBetween
   


LIBERADO

  • Expert Stencyler
  • *
May 11, 2019, 09:49:46 am
+1


Pages: 1

Details

  • Reported
    May 11, 2019, 12:41:58 am
  • Updated
    May 11, 2019, 09:49:46 am

  • View Status
    Public
  • Type
    Suggestion
  • Status
    New
  • Priority
    Normal
  • Version
    3.5.0 beta 1
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Engine

Tags