<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <META name="GENERATOR" content="hevea 1.06-7 of 2001-11-14"> <TITLE> Type testing </TITLE> </HEAD> <BODY TEXT=black BGCOLOR=white> <A HREF="manual057.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A> <A HREF="manual054.html"><IMG SRC ="contents_motif.gif" ALT="Contents"></A> <A HREF="manual059.html"><IMG SRC ="next_motif.gif" ALT="Next"></A> <HR> <TABLE CELLPADDING=0 CELLSPACING=0 WIDTH="100%"> <TR><TD BGCOLOR="#66dbff"><DIV ALIGN=center><TABLE> <TR><TD><FONT SIZE=4><B><A NAME="htoc316">8.4</A></B></FONT></TD> <TD WIDTH="100%" ALIGN=center><FONT SIZE=4><B>Type testing</B></FONT></TD> </TR></TABLE></DIV></TD> </TR></TABLE><UL> <LI><A HREF="manual058.html#toc260"> <TT>fd_var/1</TT>, <TT>non_fd_var/1</TT>, <TT>generic_var/1</TT>, <TT>non_generic_var/1</TT></A> </UL> <BR> <A NAME="toc260"></A><TABLE CELLPADDING=0 CELLSPACING=0 WIDTH="100%"> <TR><TD BGCOLOR="#98e7ff"><DIV ALIGN=center><TABLE> <TR><TD><B><A NAME="htoc317">8.4.1</A></B></TD> <TD WIDTH="100%" ALIGN=center><B><TT>fd_var/1</TT>, <TT>non_fd_var/1</TT>, <TT>generic_var/1</TT>, <TT>non_generic_var/1</TT></B></TD> </TR></TABLE></DIV></TD> </TR></TABLE> <BR> <B>Templates</B> <DL COMPACT=compact><DT><DD><TT> fd_var(?term)<BR> non_fd_var(?term)<BR> generic_var(?term)<BR> non_generic_var(?term)</TT></DL> <B>Description</B><BR> <BR> <TT>fd_var(Term)</TT> succeeds if <TT>Term</TT> is currently an FD variable.<BR> <BR> <TT>non_fd_var(Term)</TT> succeeds if <TT>Term</TT> is currently not an FD variable (opposite of <TT>fd_var/1</TT>).<BR> <BR> <TT>generic_var(Term)</TT> succeeds if <TT>Term</TT> is either a Prolog variable or an FD variable.<BR> <BR> <TT>non_generic_var(Term)</TT> succeeds if <TT>Term</TT> is neither a Prolog variable nor an FD variable (opposite of <TT>generic_var/1</TT>).<BR> <BR> <B>Errors</B><BR> <BR> None.<BR> <BR> <B>Portability</B><BR> <BR> GNU Prolog predicate.<BR> <BR> <HR SIZE=2> Copyright (C) 1999-2002 Daniel Diaz <BR> <BR> Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. <BR> <BR> <A HREF="index.html#copyright">More about the copyright</A> <HR> <A HREF="manual057.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A> <A HREF="manual054.html"><IMG SRC ="contents_motif.gif" ALT="Contents"></A> <A HREF="manual059.html"><IMG SRC ="next_motif.gif" ALT="Next"></A> </BODY> </HTML>