Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

343 B
Raw Blame
import type { Condition } from "@editor/conditions/types";

/** Whether the comparison has an input and operands ready to submit to ConditionValidator. */
export function isConditionComplete(condition: Condition): boolean {
  return (
    condition.input.field.trim() !== "" &&
    condition.values.some((value) => value.trim() !== "")
  );
}