Hi Mike,

what's in the <check> tag just needs to be a valid Python expression, afaik. So,

$psize % 8 == 0

would work (notice the double =; this is comparison, not assignment!).

For comparison, see the gr-audio/grc/analog_nbfm_rx.xml, for example.

Best regards,

Marcus


On 2017-10-19 04:02, Mike Rex wrote:
What would be the best way to make sure the user enters a parameter that is a multiple of 8 in the GRC XML file?  My first thought is this might do the trick, but seems there is no mod function for XML.  Any suggestions?

<check>$psize % 8 = 0</check> or <check>$psize mod 8 = 0</check>

Thanks in advance,
Mike


_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to