summaryrefslogtreecommitdiff
path: root/source/luametatex/source/tex/texconditional.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/luametatex/source/tex/texconditional.c')
-rw-r--r--source/luametatex/source/tex/texconditional.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/luametatex/source/tex/texconditional.c b/source/luametatex/source/tex/texconditional.c
index 95035f43e..b25bdfbbe 100644
--- a/source/luametatex/source/tex/texconditional.c
+++ b/source/luametatex/source/tex/texconditional.c
@@ -506,6 +506,11 @@ void tex_conditional_if(halfword code, int unless)
}
}
goto RESULT;
+ case if_zero_int_code:
+ {
+ result = tex_scan_int(0, NULL) == 0;
+ }
+ goto RESULT;
case if_abs_dim_code:
case if_dim_code:
/*tex
@@ -533,6 +538,11 @@ void tex_conditional_if(halfword code, int unless)
}
}
goto RESULT;
+ case if_zero_dim_code:
+ {
+ result = tex_scan_dimen(0, 0, 0, 0, NULL) == 0;
+ }
+ goto RESULT;
case if_odd_code:
/*tex Test if an integer is odd. */
{