\NeedsTeXFormat{LaTeX2e}
\ProvidesExplPackage{PrimeTeX/packages/Branch}{2025-09-18}{1.0}{
	LaTeX2e-syntax wrappers for LaTeX3 branch commands.
}

\NewDocumentCommand{\If}{m +m +O{}}{
	\bool_if:nTF {#1} {#2} {#3}
}

\NewDocumentCommand{\Compare}{o m o}{
	\bool_if:nTF {\tl_if_novalue_p:n {#1} || \tl_if_novalue_p:n {#3}} {
		\dim_compare_p:n {#2}
	} {
		\dim_compare_p:nNn {#1} #2 {#3}
	}
}

\NewDocumentCommand{\Switch}{m +m +O{} +O{}}{
	\int_case:nnTF {#1} {#2} {#3} {#4}
}