# Compare 2 lists and use biggest values as output

**URL:** <https://forum.dynamobim.com/t/compare-2-lists-and-use-biggest-values-as-output/18702>\
**Category:** Uncategorized\
**Tags:** revit, python, dynamo\
**Created:** [February 1, 2018, 3:34pm UTC](https://forum.dynamobim.com/t/compare-2-lists-and-use-biggest-values-as-output/18702 "2018-02-01T15:34:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![snnybsch](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/snnybsch/32/59185_2.png) [@snnybsch](https://forum.dynamobim.com/u/snnybsch)\
**Post date:** [February 1, 2018, 3:34pm UTC](https://forum.dynamobim.com/t/compare-2-lists-and-use-biggest-values-as-output/18702/1 "2018-02-01T15:34:50Z")

</div>

I have 2 list and want to output the biggest value of the two list.

Any idea why the code block is wrong?

 ![Compare%202%20lists%20and%20use%20biggest%20value%20as%20output](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/d/3d92ff7e684a941121d4bc81ec897dfd954171d4.png)

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [February 1, 2018, 5:53pm UTC](https://forum.dynamobim.com/t/compare-2-lists-and-use-biggest-values-as-output/18702/2 "2018-02-01T17:53:22Z")

</div>

@snnybsch swap **=** and **\<**  
 ![ab](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/a/da0884c07d7527fbfeab3a3f5408f9fdf0af2c69.png)
