Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Camilo Marchesini
dynare
Commits
b6cbfb56
Verified
Commit
b6cbfb56
authored
Aug 08, 2019
by
Houtan Bastani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
preprocessor: submodule update and doc update
parent
ea06dfbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
doc/manual/source/the-model-file.rst
doc/manual/source/the-model-file.rst
+17
-0
preprocessor
preprocessor
+1
-1
No files found.
doc/manual/source/the-model-file.rst
View file @
b6cbfb56
...
...
@@ -10482,6 +10482,23 @@ directive (see below). A function is evaluated at the time it is invoked, not
at define time. Functions can be included in expressions and the operators that
can be combined with them depend on their return type.
.. rubric:: Checking variable type
Given a variable name or literal, you can check the type it evaluates to using
the following functions: ``isboolean``, ``isreal``, ``isstring``, ``istuple``,
and ``isarray``.
*Examples*
+---------------------+------------+
| **Code** | **Output** |
+=====================+============+
| ``isboolean(0)`` | ``false`` |
+---------------------+------------+
| ``isboolean(true)`` | ``true`` |
+---------------------+------------+
| ``isreal("str")`` | ``false`` |
+---------------------+------------+
.. rubric:: Casting between types
...
...
preprocessor
@
273c54f7
Compare
ff6eea7f
...
273c54f7
Subproject commit
ff6eea7f297cdceab7b8c2fd954d7332bb86e04f
Subproject commit
273c54f7fbd9a8f345e33300e25ea5fb45b2b3c8
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment