mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
issue 74: Implement conditional statement in rulesets
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8582 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e0c298d958
commit
1e70e0240b
4 changed files with 107 additions and 10 deletions
9
tests/classes/validator/condition.xml
Normal file
9
tests/classes/validator/condition.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ruleset version="1.5.0">
|
||||
<fields>
|
||||
<field name="greeting1" required="true" />
|
||||
<field name="greeting2">
|
||||
<if test="$greeting1 == 'Hello'" attr="required" value="true" />
|
||||
</field>
|
||||
</fields>
|
||||
</ruleset>
|
||||
Loading…
Add table
Add a link
Reference in a new issue