Paste #35639: Untitled Paste

Date: 2016/08/28 11:31:09 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18


# This is what i currently have.
    - if ( %1lx% >= %2lx% ) && ( %1lx% <= %2hx% ) {
      - define flx '%1lx%'
      }
      else {
      - define flx '%2lx%'
      }

# I'm wondering if there's a more efficient way to do it...
    - if <def[1lx].max[%2lx%]> == <def[1lx].min[%2hx%]> {
      - define flx '%1lx%'
      }
      else {
      - define flx '%2lx%'
      }

# Or even like this since 2lx should always be greater than 2hx
    - define flx '<def[1lx].max[%2lx%].min[<def[1lx].min[%2hx%]>]>'