principal_not_anonymous_and_equal

Function principal_not_anonymous_and_equal 

Source
pub fn principal_not_anonymous_and_equal(x: Principal, y: Principal) -> bool
Expand description

Checks if two principals are equal and neither is anonymous.

§Arguments

  • x - The first principal to compare.
  • y - The second principal to compare.

§Returns

True if the principals are equal and neither is anonymous; false otherwise.