[][src]Function pips::operators::compare

pub fn compare(left: &i32, right: &i32) -> i32

Compare two rolls

returns:

  • 1 if left is greater than right
  • 0 if left is equal to right
  • -1 if left is less than right